testmempoolaccept

Input(s) 2

This RPC command assesses whether submitted raw transactions, provided in hex format, meet the criteria for mempool acceptance without actually adding them to the mempool. It evaluates against consensus and policy restrictions.

How is this used?

To verify in advance if transactions will be accepted by the mempool, useful for testing transaction validity before submission​

Request

method

testmempoolaccept

rawtxs

Required

maxfeerate

Optional

Inputs(2)

one required input remaining...

rawtxs (required) - An array of raw transactions in the form of a hex string
maxfeerate It rejects transactions with a fee rate higher than the specified value, and it is set to 0 to accept any fee rate

Result