-
bitcoin $77206.799877 USD
-0.54% -
ethereum $2480.536928 USD
-1.49% -
tether $0.999766 USD
0.02% -
bnb $717.768301 USD
-0.81% -
xrp $1.398854 USD
0.93% -
usd-coin $0.999946 USD
0.01% -
solana $100.783952 USD
-0.71% -
tron $0.337610 USD
-0.52% -
hyperliquid $79.006439 USD
-1.08% -
zcash $1143.411926 USD
0.63% -
dogecoin $0.082676 USD
-1.89% -
monero $513.505414 USD
1.54% -
chainlink $11.403390 USD
-0.09% -
unus-sed-leo $8.960483 USD
-0.02% -
cardano $0.204348 USD
-2.23%
How to Check Token Balance by Wallet Address?
Users can query native and token balances across 7 chains via `/balance/{chain}/{address}`—requiring a valid `X-API-Key`, returning precise stringified values and ENS support.
Sep 15, 2026 at 02:00 pm
Direct Chain-Specific Balance Queries
1. Users can retrieve token balances by submitting a GET request to /balance/{chain}/{address}, where {chain} is one of the seven supported blockchains and {address} is the wallet’s hexadecimal string.
2. The endpoint returns native token balance and ERC-20/BEP-20/SPL token holdings, depending on chain-specific contract standards and indexer coverage.
3. Solana responses include SPL token accounts mapped to the wallet, while Ethereum and Base return both ETH and token balances via multicall aggregation.
4. Hedera queries return only native HBAR balance; HTS tokens require separate contract interaction not covered by this endpoint.
5. Bitcoin responses reflect UTXO-based BTC balance without support for RGB or other tokenization layers.
Authentication Requirements
1. Every balance request must include an X-API-Key header containing a valid credential issued by AgentHustle AI.
2. Keys are scoped to specific chains and permissions—attempting to query BSC with an Ethereum-only key results in HTTP 403.
3. Rate limits apply per key: 60 requests per minute across all endpoints, enforced at the API gateway level.
4. Invalid or expired keys trigger HTTP 401 with a JSON body indicating “invalid_api_key” or “key_expired”.
5. No session cookies or OAuth flows are involved; authentication is stateless and header-driven.
Response Structure and Data Fields
1. Successful responses use HTTP 200 and contain a top-level balance field expressed as a stringified integer in base units (e.g., wei for ETH, lamports for SOL).
2. A tokens array lists non-native assets, each with contractAddress, symbol, decimals, and rawBalance.
3. The lastUpdated field reports Unix timestamp in milliseconds, aligned with the underlying blockchain indexer’s latest synced block.
4. For wallets holding no tokens beyond native currency, the tokens array remains present but empty.
5. All numeric values are delivered as strings to prevent floating-point precision loss during JSON serialization.
ENS Name Resolution Integration
1. ENS names like vitalik.eth can be used directly in place of hexadecimal addresses when the resolver service is enabled.
2. The API automatically performs reverse lookup via Ethereum mainnet’s ENS registry before forwarding the query to the chain-specific balance endpoint.
3. Resolution fails silently if the name does not resolve to an address or points to an invalid checksummed format.
4. Supported ENS TLDs include .eth, .xyz, and .luxe; .com and .org are not processed unless registered in ENS-compatible resolvers.
5. PayPal and Venmo integrations allow PYUSD transfers using ENS names, but balance checks remain chain-native and do not reflect off-chain payment balances.
Frequently Asked Questions
Q: Can I check balances for wallets on unsupported chains like Cardano or Avalanche?A: No. The endpoint only supports Solana, Ethereum, Base, BSC, Polygon, Hedera, and Bitcoin. Requests for other chains return HTTP 400 with error code “unsupported_chain”.
Q: Does the API detect wrapped tokens like wBTC or wETH in Ethereum wallets?A: Yes. Wrapped tokens adhering to ERC-20 standards appear in the tokens array with their correct symbol, decimals, and raw balance.
Q: What happens if a wallet has zero balance across all assets?A: The response includes balance: '0' and an empty tokens array. HTTP status remains 200.
Q: Is there a way to batch-check multiple addresses in one request?A: Not natively. Each address requires a separate HTTP request. Clients must implement parallelization or queuing logic externally.
Disclaimer:info@kdj.com
The information provided is not trading advice. kdj.com does not assume any responsibility for any investments made based on the information provided in this article. Cryptocurrencies are highly volatile and it is highly recommended that you invest with caution after thorough research!
If you believe that the content used on this website infringes your copyright, please contact us immediately (info@kdj.com) and we will delete it promptly.
- BAE Altcoin Hamlesi: UAE's Digital Identity Goes Avalanche
- 2026-09-15 16:35:02
- Bitcoin, Ethereum, and Crypto Positioning: Navigating a Market of Divergence and Resilience
- 2026-09-15 13:05:01
- USDT Forfeiture Highlights Iranian Oil Sales, Binance Account Links
- 2026-09-15 12:35:01
- Balancer Revenue Challenges Lead to Proposed Protocol Wind-Down
- 2026-09-15 13:00:02
- S&P Global Leads $110M Series B Extension for Kaiko, Fueling Tokenized Market Data Infrastructure
- 2026-09-15 12:55:01
- Stablecoin News: Brian Armstrong, Coinbase & Community Banks — A New Era for Local Finance?
- 2026-09-15 13:10:01
Related knowledge
How to Check Whether a Crypto Transfer Has Been Confirmed?
Sep 09,2026 at 04:20pm
Market Volatility Patterns1. Bitcoin price swings often exceed 10% within a 24-hour window during high-liquidity events such as ETF approval announcem...
How to Check Which Network a Wallet Address Uses?
Sep 09,2026 at 06:19pm
Bitcoin Halving Mechanics1. Bitcoin’s protocol enforces a fixed issuance schedule where block rewards are cut in half approximately every 210,000 bloc...
How to Add a Token by Contract Address in Trust Wallet?
Sep 10,2026 at 11:00am
Accessing the Add Custom Token Interface1. Launch the Trust Wallet application on your mobile device. 2. Navigate to the wallet dashboard by tapping t...
How to Import Trust Wallet Using a Recovery Phrase?
Sep 12,2026 at 03:00am
Understanding Recovery Phrase Import1. A recovery phrase is a sequence of 12 or 24 English words generated during wallet creation, uniquely tied to yo...
How to Import MetaMask into Trust Wallet?
Sep 11,2026 at 03:19pm
MetaMask and Trust Wallet Interoperability1. MetaMask and Trust Wallet operate as independent self-custodial wallets with distinct seed phrase systems...
How to Check Why a Trust Wallet Transaction Is Pending?
Sep 10,2026 at 11:19am
Understanding Transaction Status in Trust Wallet1. A pending transaction in Trust Wallet indicates that the transaction has been broadcast to the bloc...
How to Check Whether a Crypto Transfer Has Been Confirmed?
Sep 09,2026 at 04:20pm
Market Volatility Patterns1. Bitcoin price swings often exceed 10% within a 24-hour window during high-liquidity events such as ETF approval announcem...
How to Check Which Network a Wallet Address Uses?
Sep 09,2026 at 06:19pm
Bitcoin Halving Mechanics1. Bitcoin’s protocol enforces a fixed issuance schedule where block rewards are cut in half approximately every 210,000 bloc...
How to Add a Token by Contract Address in Trust Wallet?
Sep 10,2026 at 11:00am
Accessing the Add Custom Token Interface1. Launch the Trust Wallet application on your mobile device. 2. Navigate to the wallet dashboard by tapping t...
How to Import Trust Wallet Using a Recovery Phrase?
Sep 12,2026 at 03:00am
Understanding Recovery Phrase Import1. A recovery phrase is a sequence of 12 or 24 English words generated during wallet creation, uniquely tied to yo...
How to Import MetaMask into Trust Wallet?
Sep 11,2026 at 03:19pm
MetaMask and Trust Wallet Interoperability1. MetaMask and Trust Wallet operate as independent self-custodial wallets with distinct seed phrase systems...
How to Check Why a Trust Wallet Transaction Is Pending?
Sep 10,2026 at 11:19am
Understanding Transaction Status in Trust Wallet1. A pending transaction in Trust Wallet indicates that the transaction has been broadcast to the bloc...
See all articles














