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

NameTypeRequiredDescription
addressstringyesHolder address
contract_addressstringyesERC-20 contract address
chainstringnoChain 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

FieldTypeDescription
chain_idnumberNumeric chain ID
chain_namestring | nullHuman-readable chain name or null
addressstringThe queried holder address
contract_addressstringERC-20 token contract address
raw_balancestringRaw token balance (unadjusted for decimals)
notestringInstruction 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.

Regenerated from source · build June 27, 2026