GET /pf/api/v1/wallet/{chain}/{wallet}/token_stat

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

Wallet lifetime trade totals, bought cost, sold income, and realized profit for one token

Parameters

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

Response

type: object
pagination: none
sample: {
  "realized_profit": "0",
  "total_buys": 0,
  "bought_cost": "0",
  "total_sells": 0,
  "sold_income": "0",
  "total_transfer_ins": 0
}

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/pf/api/v1/wallet/sol/Dr8rkEcrZyQyJRqC8kBc5g6ZPUN59mSSTo8u1wR5gePH/token_stat?token_address=DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263"