testmempoolaccept

Indicates whether one or more raw transactions (serialized, hex-encoded) would be accepted by the mempool.

⚠ This endpoint is only available with Blast access.

Path parameters

apiKeystringRequired

Request

This endpoint expects an object.
rawtxslist of stringsRequired

An array of hex-encoded raw transactions to test for mempool acceptance.

maxfeeratedoubleOptional

Reject transactions whose fee rate is higher than the specified value, expressed in BTC/kB.

Response

Result of the mempool acceptance test for each transaction.
txidstring or nullformat: "^[a-fA-F0-9]{64}$"

A 64-character hex string identifying a transaction.

wtxidstring or null
Witness transaction ID, if available.
allowedboolean or null
Whether the transaction would be accepted to the mempool.
reject-reasonstring or null
Reason for rejection if not allowed.