Tokens API
How much has been paid in fees trading this token?
All-time fees paid over a Solana token's trades: network, priority, tips and trading-platform fees in SOL, platform fees in stablecoins, and the tips and platform fees split by name.
/api/external/token-analysis/token-fees/{chain}/{mint}What it returns
Every fee paid over the trades of the token since it began trading, in SOL: base network fees, priority fees, tips to transaction senders and trading-platform fees, with totalSol their sum. Trading-platform fees paid in stablecoins are a separate total, in stablecoin units. The tips and the platform fees are also split by the name they are filed under, largest first. A token with nothing on record answers null in every field; that does not say it never traded.
Chains
- Solana SOL
Request
Send your key in the x-dex-data-key header. Replace each <placeholder> with a real value.
curl -H "x-dex-data-key: $DEXDATA_API_KEY" \ "https://api.dexdata.io/api/external/token-analysis/token-fees/SOL/<mint>"
| Parameter | Description |
|---|---|
chainpath · string · required | The chain the token lives on. SOL only; every other chain returns 400. |
mintpath · string · required | The token mint address (Solana) or contract address (EVM). |
Response fields
A JSON response. Every field is always present; null means the value could not be established, never zero.
| Field | Type | Description |
|---|---|---|
chain | string | The chain asked about. |
token | string | The token asked about, as written. |
totalSol | number | null | All fees below, in SOL: network + priority + tips + trading platforms. |
networkSol | number | null | Base network fees, in SOL. |
prioritySol | number | null | Priority fees, in SOL. |
tipsSol | number | null | Tips paid to transaction senders, in SOL. |
tradingPlatformSol | number | null | Trading-platform fees paid in SOL. |
tradingPlatformStablecoins | number | null | Trading-platform fees paid in stablecoins, in stablecoin units. |
tipsBySender | object[] | null | tipsSol split by transaction sender, largest first. |
tipsBySender[].name | string | The name the payment is filed under. |
tipsBySender[].amount | number | |
tradingPlatformSolByPlatform | object[] | null | tradingPlatformSol split by trading platform, largest first. |
tradingPlatformSolByPlatform[].name | string | The name the payment is filed under. |
tradingPlatformSolByPlatform[].amount | number | |
tradingPlatformStablecoinsByPlatform | object[] | null | tradingPlatformStablecoins split by trading platform, largest first. |
tradingPlatformStablecoinsByPlatform[].name | string | The name the payment is filed under. |
tradingPlatformStablecoinsByPlatform[].amount | number |
Start building with DexData today
Sign in, create a key and make your first call in a minute. Free credits every month, and you only pay for calls that succeed.
Get a free API key