Skip to contents

Returns information about the node's memory pool (mempool), which holds unconfirmed transactions awaiting inclusion in a block.

Usage

mc_get_mempool_info(conn)

Arguments

conn

A connection object created by mc_connect.

Value

A list with mempool statistics:

size

Number of transactions in the mempool.

bytes

Total size in bytes.

usage

Memory usage.

See also

mc_get_raw_mempool for the list of transaction IDs.

Other mempool & transactions: mc_get_raw_mempool(), mc_get_raw_transaction(), mc_get_tx_out()

Examples

if (FALSE) { # \dontrun{
mempool <- mc_get_mempool_info(conn)
print(paste("Pending transactions:", mempool$size))
} # }