Skip to Content
Blockhash Docs
API referenceTokens
GET
/v1/tokens/{address}/traders/{wallet}

What one wallet holds of a token, what that is worth at the token's price, and what it made on the token at average cost: its trades, transfers, cost basis, realized and unrealized. pnl is null where pnlWhy says why.

Path Parameters

address*string

The token.

Match^0x[0-9a-fA-F]{40}$
wallet*string

A 20-byte hex address.

Match^0x[0-9a-fA-F]{40}$

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/tokens/string/traders/string"
{  "token": "string",  "wallet": "string",  "balance": "string",  "valueUsd": 0,  "priceUsd": 0,  "label": {    "kind": "burn",    "name": "string"  },  "pnl": {    "bought": {      "amount": 0,      "usd": 0,      "txs": 0    },    "sold": {      "amount": 0,      "usd": 0,      "txs": 0    },    "received": {      "amount": 0,      "txs": 0    },    "sent": {      "amount": 0,      "txs": 0    },    "costBasisUsd": 0,    "avgCostUsd": 0,    "realizedUsd": 0,    "unrealizedUsd": 0,    "totalUsd": 0,    "estimated": true,    "firstAt": 0,    "lastAt": 0  },  "pnlWhy": "contract",  "readAt": 0,  "source": "indexer"}