Skip to main content

getmempoolinfo


description: Provides information about the TX memory pool's current state.

getmempoolinfo

Example Request and Result for getmempoolinfo method

In this section, we provide an illustrative example of a request made to retrieve details contents using the getmempoolinfo method. Additionally, we present the resulting response containing information about the TX memory pool's state.

Parameters

  • none
info

The example in this section uses a non-existing project id.

Make sure you replace it with your Bitcoin mainnet or Bitcoin Testnet endpoint when issuing the API calls.

Don't have a project id? Here's a straightforward guide on how to obtain one!

Provides information about the TX memory pool's current state.

POST https://bitcoin-mainnet.blastapi.io/<project-id>

Request Body

NameTypeDescription
jsonrpc*string1.0
id*stringbwarelabs
method*stringgetmempoolinfo
params*array<string>["b86ae732473ff2c91c04073ec9cbef5e4ddaa701741e141e41345df72122b795", null]
{
"result": {
"loaded": true,
"size": 52173,
"bytes": 93871836,
"usage": 288621536,
"total_fee": 7.90326757,
"maxmempool": 300000000,
"mempoolminfee": 0.00001773,
"minrelaytxfee": 0.00001000,
"incrementalrelayfee": 0.00001000,
"unbroadcastcount": 0,
"fullrbf": false
},
"error": null,
"id": "bwarelabs"
}

Curl Request example

curl --location 'https://bitcoin-mainnet.blastapi.io/<project-id>' \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "1.0",
"id": "bwarelabs",
"method": "getmempoolinfo",
"params": []
}'