rest/mempool/info - Bitcoin

This endpoint returns aggregate statistics for the node's memory pool: how many transactions are queued, how much memory they occupy, and the current fee floors.

Parameters

This endpoint takes no parameters.

Request

bashcurl --location --request GET 'https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/rest/mempool/info.json'

example.js

javascriptconst response = await fetch(
    'https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/rest/mempool/info.json'
);
console.log(await response.json());

example.py

pythonimport requests

response = requests.get('https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/rest/mempool/info.json')

print(response.json())

Response

json{
    "loaded": true,
    "size": 21636,
    "bytes": 5260824,
    "usage": 36534496,
    "total_fee": 0.02524621,
    "maxmempool": 300000000,
    "mempoolminfee": 1e-06,
    "minrelaytxfee": 1e-06,
    "incrementalrelayfee": 1e-06,
    "unbroadcastcount": 0,
    "fullrbf": true,
    "permitbaremultisig": true,
    "maxdatacarriersize": 100000,
    "limitclustercount": 64,
    "limitclustersize": 101000,
    "optimal": true
}

Response Parameters

FieldTypeDescription
loadedbooleanTrue once the mempool has finished loading
sizenumericNumber of transactions in the mempool
bytesnumericTotal virtual size of mempool transactions
usagenumericMemory the mempool occupies, in bytes
total_feenumericSum of all mempool fees, in BTC
maxmempoolnumericMaximum memory the mempool may use, in bytes
mempoolminfeenumericMinimum fee rate for acceptance, in BTC per kvB. Rises above minrelaytxfee when the mempool is full
minrelaytxfeenumericMinimum relay fee rate, in BTC per kvB
incrementalrelayfeenumericMinimum fee-rate increment for replacing a transaction
unbroadcastcountnumericTransactions the node has not yet had confirmed as broadcast
fullrbfbooleanTrue when the node replaces transactions regardless of opt-in signalling

mempoolminfee is the value that matters when broadcasting. It equals minrelaytxfee on an uncongested node, but rises once the mempool fills and starts evicting, and a transaction below it is rejected.

Fee rates here are in BTC per kvB, not satoshis per vbyte. Multiply by 100,000 to convert: the 1e-06 above is 1 sat/vB.

Use Cases

  • Fee Floors: Read mempoolminfee before broadcasting, so a transaction is not rejected
  • Congestion Checks: Compare usage against maxmempool to see how full the node is
  • RBF Logic: Read incrementalrelayfee when sizing a replacement transaction
  • Monitoring: Track mempool size and total fees over time

Error Handling

HTTP StatusMessageDescription
400Bad requestThe path is malformed, or a hash or height is invalid
403ForbiddenMissing or invalid ACCESS-TOKEN
404Not foundNo object matches the requested hash, height, or outpoint
500Internal errorThe node failed to process the request