get_token_balance
Pack: etherscan · Endpoint: https://gateway.pipeworx.io/etherscan/mcp
ERC-20 token balance for an address against a specific token contract.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
address | string | yes | Holder address |
contract_address | string | yes | ERC-20 contract address |
chain | string | no | Chain slug or numeric chain ID (default ethereum) |
Example call
Arguments
{
"address": "0x1234567890123456789012345678901234567890",
"contract_address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
}
curl
curl -X POST https://gateway.pipeworx.io/etherscan/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_token_balance","arguments":{"address":"0x1234567890123456789012345678901234567890","contract_address":"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_token_balance', {
"address": "0x1234567890123456789012345678901234567890",
"contract_address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
});
More examples
{
"address": "0xabcdefabcdefabcdefabcdefabcdefabcdefabcd",
"contract_address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"chain": "arbitrum"
}
Response shape
Always returns: chain_id, chain_name, address, contract_address, raw_balance, note
| Field | Type | Description |
|---|---|---|
chain_id | number | Numeric chain ID |
chain_name | string | null | Human-readable chain name or null |
address | string | The queried holder address |
contract_address | string | ERC-20 token contract address |
raw_balance | string | Raw token balance (unadjusted for decimals) |
note | string | Instruction to use token decimals to convert |
Full JSON Schema
{
"type": "object",
"properties": {
"chain_id": {
"type": "number",
"description": "Numeric chain ID"
},
"chain_name": {
"type": [
"string",
"null"
],
"description": "Human-readable chain name or null"
},
"address": {
"type": "string",
"description": "The queried holder address"
},
"contract_address": {
"type": "string",
"description": "ERC-20 token contract address"
},
"raw_balance": {
"type": "string",
"description": "Raw token balance (unadjusted for decimals)"
},
"note": {
"type": "string",
"description": "Instruction to use token decimals to convert"
}
},
"required": [
"chain_id",
"chain_name",
"address",
"contract_address",
"raw_balance",
"note"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"etherscan": {
"url": "https://gateway.pipeworx.io/etherscan/mcp"
}
}
}
See Getting Started for client-specific install steps.