getmempoolinfo

Zcash RPC

Archive Method

Only on the full archive nodes. Complex queries might take longer and incur additional cost

How to use it

// yarn add @tatumio/tatum

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

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

const result = await tatum.rpc.getMempoolInfo()

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

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.

Return Object

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

Fields

  • size: (numeric) The number of transactions in the memory pool.
  • bytes: (numeric) The total size of all transactions in the memory pool, in bytes.
  • usage: (numeric) The total memory usage of the memory pool, in bytes.
  • maxmempool: (numeric) The maximum memory usage of the memory pool, in bytes.
  • mempoolminfee: (numeric) The minimum fee rate required for transactions to be included in the memory pool.
  • minrelaytxfee: (numeric) The minimum fee rate required for transactions to be relayed across the network.

JSON Examples

Request example:

{% code overflow="wrap" lineNumbers="true" %}

{
  "jsonrpc": "2.0",
  "method": "getmempoolinfo",
  "id": 1
}

{% endcode %}

Response example:

{% code overflow="wrap" lineNumbers="true" %}

{
    "result": {
        "loaded": true,
        "size": 28338,
        "bytes": 11367166,
        "usage": 63671920,
        "total_fee": 0.73841041,
        "maxmempool": 4000000000,
        "mempoolminfee": 0.00001,
        "minrelaytxfee": 0.00001,
        "incrementalrelayfee": 0.00001,
        "unbroadcastcount": 0,
        "fullrbf": false
    },
    "error": null,
    "id": 1
}

{% endcode %}

\