testmempoolaccept RPC Method
Parameters
rawtxs
JSON array
REQUIRED
An array of raw transactions in the form of a hex string
maxfeerate
string/numeric
default=0.10. It rejects transactions with a fee rate higher than the specified value, and it is set to 0 to accept any fee rate
Returns
txid
The transaction id
wtxid
The transaction witness hash in hex
package-error
The package validation error, if any. It is only possible if rawtxs had more than one transaction
allowed
It indicates if the mempool allows current transaction to be inserted or not
vsize
The virtual transaction size as defined in BIP 141. This is different from actual serialized size for witness transactions as witness data is discounted
fees
A JSON array containing information about the transaction fee paid by the transaction and it is only present if allowed is false
base
The transaction fee in BTC
reject-reason
The rejection string and it is only present if allowed is false
Request
1curl https://docs-demo.btc.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{"method": "testmempoolaccept", "params": ["rawtxs"]}'5
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free