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 freeToken metadata, price and optional wallet balance for one or more tokens on a chain.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
chainId | query | str | required | DZap numeric chain id (hub names/aliases are resolved locally). example: 8453 |
tokenAddresses | query | str | required | Comma-separated contract addresses; the zero address means the chain's native token. example: 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913 |
includeBalance | query | bool | optional | Include on-chain balances (needs an account to be meaningful). default: falseexample: false |
includePrice | query | bool | optional | Include the USD price and related pricing flags. default: trueexample: 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"