Sources › Finance › On-chain (Ethereum & BSC) › Wallet Balances & Portfolio (ETH/BSC)

On-chain Wallet Balances & Portfolio (ETH/BSC) API
Wallet portfolio on Ethereum or BNB Smart Chain: exact native balance (ETH/BNB, wei precision, with block number), all ERC20/BEP20 token balances (raw + decimal), USD price and value per token, and total portfolio value in USD. Tokens sorted by USD value; onlyPriced=true hides unpriced/spam tokens. Empty wallets return 0.
Request
https://api.zapi.ink/v1/finance:onchain/walletSend your key in the x-api-key header. The response is JSON in the { project, data, timestamp } envelope, and an identical request is served from cache for 1 minute.
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
| chain | enum: eth | bsc | query | Yes | Chain: `eth` (Ethereum) or `bsc` (BNB Smart Chain) Example: eth |
| address | string | query | Yes | Wallet address (0x + 40 hex) Example: 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 |
| onlyPriced | boolean | query | No | true = only return tokens that have a USD price (hides most spam tokens). Default false Example: false |
| limit | number | query | No | Max tokens returned, sorted by USD value (1-1000). Default 100. totalValueUsd always covers all tokens Example: 100 |
Code examples
curl -X GET "https://api.zapi.ink/v1/finance:onchain/wallet?chain=eth&address=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045&onlyPriced=false&limit=100" \ -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
const res = await fetch("https://api.zapi.ink/v1/finance:onchain/wallet?chain=eth&address=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045&onlyPriced=false&limit=100", { method: "GET", headers: { "x-api-key": "zpi_xxxxxxxxxxxxxxxxxxxxxxxx" }, }); const data = await res.json(); console.log(data);
import requests res = requests.get( "https://api.zapi.ink/v1/finance:onchain/wallet", params={"chain":"eth","address":"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045","onlyPriced":"false","limit":"100"}, headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"}, ) print(res.json())
Frequently asked questions
How do I call the On-chain Wallet Balances & Portfolio (ETH/BSC) API?
Send a GET request to https://api.zapi.ink/v1/finance:onchain/wallet?chain=eth&address=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 with your Zapi key in the x-api-key header. Parameters — required: chain, address; optional: onlyPriced, limit. The response is JSON in the { project, data, timestamp } envelope.
What does the On-chain Wallet Balances & Portfolio (ETH/BSC) API return?
Wallet portfolio on Ethereum or BNB Smart Chain: exact native balance (ETH/BNB, wei precision, with block number), all ERC20/BEP20 token balances (raw + decimal), USD price and value per token, and total portfolio…
Is the On-chain Wallet Balances & Portfolio (ETH/BSC) API free?
Yes. It is on the Zapi free tier: 600 Zap a month with one API key and no credit card. Each call costs 2 Zap. Paid plans raise the limits.
Can an AI assistant call the On-chain Wallet Balances & Portfolio (ETH/BSC) API?
Yes. Add the Zapi MCP server (https://mcp.zapi.ink/mcp) to Claude, Cursor or another MCP client and ask in plain words; it calls run_scraper with scraper "onchain" and endpoint "wallet".
What other On-chain API endpoints are there?
It has 2 endpoints. Besides Wallet Balances & Portfolio (ETH/BSC): Token Holders (ETH/BSC).