getmempoolinfo

Bitcoin RPC

Overview

The getmempoolinfo RPC method allows you to retrieve general information about the current memory pool. This method is useful for monitoring the state of the memory pool, such as its size, the total transaction fees, and the minimum fee rate required for transactions to be included in the next block.

Parameters

This method does not require any parameters.

Returns

The return object will be an object containing general information about the current memory pool.

NameDescription
sizeThe number of transactions in the memory pool.
bytesThe total size of all transactions in the memory pool, in bytes.
usageThe total memory usage of the memory pool, in bytes.
maxmempoolThe maximum memory usage of the memory pool, in bytes.
mempoolminfeeThe minimum fee rate (in BTC/kB) required for transactions to be included in the memory pool.
minrelaytxfeeThe minimum fee rate (in BTC/kB) required for transactions to be relayed across the network.

Request Example

curl --location 'https://api.tatum.io/v3/blockchain/node/bitcoin-mainnet/' \
--header 'Content-Type: application/json' \
--header 'x-api-key: {API_KEY}' \
--data '{
  "jsonrpc": "2.0",
  "method": "getmempoolinfo",
  "id": 1
}'
// yarn add @tatumio/tatum

import { TatumSDK, Bitcoin, Network } from '@tatumio/tatum'

const tatum = await TatumSDK.init<Bitcoin>({ network: Network.BITCOIN })

const result = await tatum.rpc.getMempoolInfo()

await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs