Chains API

What it costs to land a Solana transaction right now

The base fee per signature in lamports, and the priority fee per compute unit in micro-lamports at the 25th, 50th, 75th and 95th percentiles of the last 150 slots. SOL only.

GET/api/external/chain-analysis/priority-fees/{chain}

What it returns

The base fee per signature, in lamports, and the priority fee per compute unit, in micro-lamports, at the 25th, 50th, 75th and 95th percentiles of the last 150 slots across the whole network. A transaction pays the base fee once per signature it carries, plus its compute-unit limit times the priority fee it sets (micro-lamports: 1,000,000 per lamport). The percentiles are of the whole network, not of the accounts one transaction touches; a busy market can clear above them.

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/chain-analysis/priority-fees/SOL"
Parameters
ParameterDescription
chain

path · string · required

SOL only; every other chain returns 400. Solana prices a transaction per signature and per compute unit, not in gas — gas-price answers the EVM chains.

Response fields

A JSON response. Every field is always present; null means the value could not be established, never zero.

Response fields of What it costs to land a Solana transaction right now
FieldTypeDescription
baseFeeLamportsPerSignatureintegerThe base fee, in lamports, charged for each signature a transaction carries.
priorityFeeMicroLamportsPerComputeUnitobjectThe priority fee paid per compute unit, in micro-lamports, at four percentiles.
priorityFeeMicroLamportsPerComputeUnit.p25numberThe 25th percentile of the priority fee paid per compute unit, in micro-lamports.
priorityFeeMicroLamportsPerComputeUnit.p50numberThe 50th percentile of the priority fee paid per compute unit, in micro-lamports.
priorityFeeMicroLamportsPerComputeUnit.p75numberThe 75th percentile of the priority fee paid per compute unit, in micro-lamports.
priorityFeeMicroLamportsPerComputeUnit.p95numberThe 95th percentile of the priority fee paid per compute unit, in micro-lamports.
windowSlotsintegerHow many recent slots the percentiles are taken over.

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