GET /mempool
Get mempool backlog statistics.
This method will use 10
Compute Units.
Parameters
None.
Returns
Get mempool backlog statistics. Returns an object with:
count
: the number of transactions in the mempoolvsize
: the total size of mempool transactions in virtual bytestotal_fee
: the total fee paid by mempool transactions in satoshisfee_histogram
: mempool fee-rate distribution histogramAn array of
(feerate, vsize)
tuples, where each entry'svsize
is the total vsize of transactions paying more thanfeerate
but less than the previous entry'sfeerate
(except for the first entry, which has no upper bound). This matches the format used by the Electrum RPC protocol formempool.get_fee_histogram
.
Example output:
{
"count": 8134,
"vsize": 3444604,
"total_fee":29204625,
"fee_histogram": [[53.01, 102131], [38.56, 110990], [34.12, 138976], [24.34, 112619], [3.16, 246346], [2.92, 239701], [1.1, 775272]]
}
In this example, there are transactions weighting a total of 102,131 vbytes that are paying more than 53 sat/vB, 110,990 vbytes of transactions paying between 38 and 53 sat/vB, 138,976 vbytes paying between 34 and 38, etc.
curl https://mainnet.bitcoin.validationcloud.io/v1/<YOUR_API_KEY>/mempool \
-X GET
Last updated
Was this helpful?