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

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":{}}}'

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 if unknown
addressstringHolder address
contract_addressstringERC-20 token contract address
raw_balancestringToken balance in raw units (unadjusted for decimals)
notestringReminder to use token decimals for conversion
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 if unknown"
    },
    "address": {
      "type": "string",
      "description": "Holder address"
    },
    "contract_address": {
      "type": "string",
      "description": "ERC-20 token contract address"
    },
    "raw_balance": {
      "type": "string",
      "description": "Token balance in raw units (unadjusted for decimals)"
    },
    "note": {
      "type": "string",
      "description": "Reminder to use token decimals for conversion"
    }
  },
  "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 May 21, 2026