GET /token/details

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/dzap/token/detailsCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

Token metadata, price and optional wallet balance for one or more tokens on a chain.

Parameters

nameintypedescription
chainIdquerystrrequiredDZap numeric chain id (hub names/aliases are resolved locally).
example: 8453
tokenAddressesquerystrrequiredComma-separated contract addresses; the zero address means the chain's native token.
example: 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
includeBalancequerybooloptionalInclude on-chain balances (needs an account to be meaningful).
default: false
example: false
includePricequerybooloptionalInclude the USD price and related pricing flags.
default: true
example: true

Response

type: object
pagination: none
sample: {
  "contract": "str",
  "chainId": "int",
  "decimals": "int",
  "name": "str",
  "symbol": "str",
  "logo": "str",
  "balance": "str",
  "coinKey": "str",
  "price": "str",
  "verified": "bool",
  "balanceSlot": "int",
  "allowanceSlot": "int",
  "permit": "object"
}

Safe request

Reads the credential from API_HUB_KEY; it never appears in the URL.

curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/dzap/token/details?chainId=8453&tokenAddresses=0x833589fcd6edb6e08f4c7c32d4f71b54bda02913&includeBalance=false&includePrice=true"