Skip to main content

testmempoolaccept RPC Method

Returns the output of mempool acceptance tests, indicating if the mempool will accept serialized, hex-encoded raw transaction.

Updated on
Nov 26, 2026

The default example uses a transaction from an existing block, so the mempool rejects it. Provide a new, signed raw transaction to test whether it would be accepted. This method does not broadcast the transaction.

Parameters

rawtxs
array
REQUIRED

Array containing exactly one serialized, hex-encoded raw transaction.

allowhighfees
boolean

Optional flag for the node's high-fee checks (default false). It does not override other mempool acceptance checks.

Returns

result
array

Array containing one validation result for the requested raw transaction.

txid
string

Transaction hash in hexadecimal.

allowed
boolean

Whether the mempool would accept the transaction.

size
integer

Serialized transaction size in bytes, present when allowed is true.

vsize
integer

Size used for fee calculations, present when allowed is true.

fees
object

Fee details, present when allowed is true.

base
number

Transaction fee in BCH.

effective-feerate
number

Effective fee rate in BCH per kilobyte.

reject-reason
string

Rejection reason, present when allowed is false.

reject-details
string

Additional rejection details, when provided.

Request
Response
1
{
2
"result": [
3
{
4
"txid": "0aa68df3ed8f2549819ef249f6ed8e8111990e6ff99315dd9e438f393c3f83ac",
5
"allowed": false,
6
"reject-reason": "missing-inputs"
7
}
8
],
9
"error": null,
10
"id": 1
11
}
1
{
2
"result": [
3
{
4
"txid": "0aa68df3ed8f2549819ef249f6ed8e8111990e6ff99315dd9e438f393c3f83ac",
5
"allowed": false,
6
"reject-reason": "missing-inputs"
7
}
8
],
9
"error": null,
10
"id": 1
11
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free