-
bitcoin $77304.995493 USD
-1.34% -
ethereum $2242.462787 USD
-0.22% -
tether $0.998811 USD
0.06% -
bnb $700.190806 USD
-1.78% -
xrp $1.246819 USD
-0.96% -
usd-coin $0.999608 USD
0.01% -
solana $95.821212 USD
-2.08% -
tron $0.322524 USD
-2.71% -
hyperliquid $88.354275 USD
-4.90% -
zcash $1271.593482 USD
0.78% -
dogecoin $0.075302 USD
-0.98% -
monero $595.257444 USD
1.19% -
unus-sed-leo $9.445903 USD
0.09% -
chainlink $11.448745 USD
3.18% -
cardano $0.193352 USD
-0.02%
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.
- Gold and Bitcoin Take a Tumble: Navigating the Volatile Landscape of 2026 Assets
- 2026-11-01 00:35:01
- Chainalysis Breach: Customer Data Exposure Fueled by AI Tools Raises Alarms in Crypto
- 2026-10-31 16:35:02
- Binance Hack, Thai Scrutiny, and Crypto-Related Security: A New York Minute on Digital Asset Safety
- 2026-10-31 12:45:01
- Wall Street Analysts Weigh In: Binance Hack Sparks Debate on Crypto Stocks Amidst Market Volatility
- 2026-10-31 12:45:01
- Bitwise Bitcoin, Pepeto, and Pepe Record: A New York Minute on Crypto's Wild Ride
- 2026-10-31 04:35:01
- Circle CCTP Dominates Crypto Bridges, USDC Volume Soars Amidst Evolving Cross-Chain Landscape
- 2026-10-30 21:15:01
Related knowledge
How to Restore a Trezor Wallet on a New Device
Nov 01,2026 at 02:39am
Preparation Before Restoration1. Ensure you have your original 12- or 24-word recovery seed written down legibly and stored securely. 2. Verify that t...
How to Connect Trezor to a DeFi Application
Nov 01,2026 at 10:19am
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 Check Crypto Balances in Trezor Suite
Nov 01,2026 at 04:19am
Accessing Your Wallet Overview1. Launch Trezor Suite desktop or web application and ensure your Trezor device is connected via USB or Bluetooth. 2. En...
How to Reset a Ledger Wallet and Restore Your Accounts
Nov 01,2026 at 04:00am
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 Stake Solana With a Ledger Hardware Wallet
Nov 01,2026 at 09:20am
Staking Setup Requirements1. A Ledger Flex or Ledger Stax device with firmware version 2.52 or higher must be connected and unlocked. 2. The Solana ap...
How to Send Ethereum Using Ledger Live
Nov 01,2026 at 03:19am
Setting Up Ledger Live for Ethereum Transactions1. Install the latest version of Ledger Live from the official Chinese domain https://www.cn-ledger.co...
How to Restore a Trezor Wallet on a New Device
Nov 01,2026 at 02:39am
Preparation Before Restoration1. Ensure you have your original 12- or 24-word recovery seed written down legibly and stored securely. 2. Verify that t...
How to Connect Trezor to a DeFi Application
Nov 01,2026 at 10:19am
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 Check Crypto Balances in Trezor Suite
Nov 01,2026 at 04:19am
Accessing Your Wallet Overview1. Launch Trezor Suite desktop or web application and ensure your Trezor device is connected via USB or Bluetooth. 2. En...
How to Reset a Ledger Wallet and Restore Your Accounts
Nov 01,2026 at 04:00am
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 Stake Solana With a Ledger Hardware Wallet
Nov 01,2026 at 09:20am
Staking Setup Requirements1. A Ledger Flex or Ledger Stax device with firmware version 2.52 or higher must be connected and unlocked. 2. The Solana ap...
How to Send Ethereum Using Ledger Live
Nov 01,2026 at 03:19am
Setting Up Ledger Live for Ethereum Transactions1. Install the latest version of Ledger Live from the official Chinese domain https://www.cn-ledger.co...
See all articles














