GET /api/v1/wallet_token_info/{chain}/{wallet}/{address}

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/gmgn/api/v1/wallet_token_info/{chain}/{wallet}/{address}Cache cached 1s, never served stale past that windowCost per_call · weight 1 · standard rate classSource billing free

Single-token position, balance, cost basis, and PnL for one wallet

Parameters

nameintypedescription
chainpathstringrequiredBlockchain slug: sol, eth, base, bsc, tron
default: sol
example: sol
walletpathstringrequiredWallet address on the target chain
default: Dr8rkEcrZyQyJRqC8kBc5g6ZPUN59mSSTo8u1wR5gePH
example: Dr8rkEcrZyQyJRqC8kBc5g6ZPUN59mSSTo8u1wR5gePH
addresspathstringrequiredToken contract or mint address
default: DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263
example: DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263

Response

type: object
pagination: none
sample: {
  "balance": "",
  "total_value": 0,
  "buys": 0,
  "sells": 0,
  "total_profit": null,
  "total_profit_pnl": null
}

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/gmgn/api/v1/wallet_token_info/sol/Dr8rkEcrZyQyJRqC8kBc5g6ZPUN59mSSTo8u1wR5gePH/DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263"