Chains API

Pending transactions in the mempool

How many transactions wait in the Ethereum or BNB mempool, and the waiting transactions of one wallet, with nonce, fees and calldata.

GET/api/external/chain-analysis/pending-transactions/{chain}

What it returns

How many transactions wait in the chain's mempool right now — pending ones can be mined next, queued ones wait on an earlier nonce or on funds — and, when address is given, that wallet's waiting transactions, pending before queued, each by nonce. transactions is [] when the wallet has nothing waiting and null when no address was asked about. It is one node's view of the mempool: a transaction sent privately to a block builder never appears in it.

Chains

  • BNB Chain BNB
  • Ethereum ETH

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/pending-transactions/BNB"
Parameters
ParameterDescription
address

query · string · optional

The sending wallet, 0x followed by 40 hexadecimal characters. Optional.
chain

path · string · required

Ethereum or BNB; every other chain returns 400 (they show no public mempool).

Response fields

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

Response fields of Pending transactions in the mempool
FieldTypeDescription
countsobjectThe whole mempool.
counts.pendingintegerTransactions that can be mined next.
counts.queuedintegerTransactions waiting on an earlier nonce or on funds.
addressstring | nullThe wallet asked about, lowercase; null when none was.
transactionsobject[] | nullThe wallet's waiting transactions; [] when none; null when no address was asked about.
transactions[].statestringWhich part of the mempool it waits in.
transactions[].hashstringThe transaction hash.
transactions[].fromstringThe sender, lowercase.
transactions[].tostring | nullThe recipient, lowercase; null for a contract creation.
transactions[].nonceintegerThe sender's nonce.
transactions[].valueWeistringNative coin sent, in wei, as a decimal string.
transactions[].gasintegerThe gas limit.
transactions[].gasPricestring | nullGas price in wei, decimal string; null when the transaction does not carry one.
transactions[].maxFeePerGasstring | nullEIP-1559 fee cap in wei; null for a legacy transaction.
transactions[].maxPriorityFeePerGasstring | nullEIP-1559 tip cap in wei; null for a legacy transaction.
transactions[].typeintegerTransaction type: 0 legacy, 1 access list, 2 EIP-1559, and so on.
transactions[].inputstringThe calldata, lowercase hex; 0x for a plain transfer.

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