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.

GET/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>"
Parameters
ParameterDescription
chain

path · string · required

The chain the token lives on. SOL only; every other chain returns 400.
mint

path · 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.

Response fields of How much has been paid in fees trading this token?
FieldTypeDescription
chainstringThe chain asked about.
tokenstringThe token asked about, as written.
totalSolnumber | nullAll fees below, in SOL: network + priority + tips + trading platforms.
networkSolnumber | nullBase network fees, in SOL.
prioritySolnumber | nullPriority fees, in SOL.
tipsSolnumber | nullTips paid to transaction senders, in SOL.
tradingPlatformSolnumber | nullTrading-platform fees paid in SOL.
tradingPlatformStablecoinsnumber | nullTrading-platform fees paid in stablecoins, in stablecoin units.
tipsBySenderobject[] | nulltipsSol split by transaction sender, largest first.
tipsBySender[].namestringThe name the payment is filed under.
tipsBySender[].amountnumber
tradingPlatformSolByPlatformobject[] | nulltradingPlatformSol split by trading platform, largest first.
tradingPlatformSolByPlatform[].namestringThe name the payment is filed under.
tradingPlatformSolByPlatform[].amountnumber
tradingPlatformStablecoinsByPlatformobject[] | nulltradingPlatformStablecoins split by trading platform, largest first.
tradingPlatformStablecoinsByPlatform[].namestringThe name the payment is filed under.
tradingPlatformStablecoinsByPlatform[].amountnumber

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