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
- rawtxsarrayREQUIRED
Array containing exactly one serialized, hex-encoded raw transaction.
- allowhighfeesboolean
Optional flag for the node's high-fee checks (default false). It does not override other mempool acceptance checks.
Returns
- resultarray
Array containing one validation result for the requested raw transaction.
- txidstring
Transaction hash in hexadecimal.
- allowedboolean
Whether the mempool would accept the transaction.
- sizeinteger
Serialized transaction size in bytes, present when allowed is true.
- vsizeinteger
Size used for fee calculations, present when allowed is true.
- feesobject
Fee details, present when allowed is true.
- basenumber
Transaction fee in BCH.
- effective-feeratenumber
Effective fee rate in BCH per kilobyte.
- reject-reasonstring
Rejection reason, present when allowed is false.
- reject-detailsstring
Additional rejection details, when provided.
1{2"result": [3{4"txid": "0aa68df3ed8f2549819ef249f6ed8e8111990e6ff99315dd9e438f393c3f83ac",5"allowed": false,6"reject-reason": "missing-inputs"7}8],9"error": null,10"id": 111}
1{2"result": [3{4"txid": "0aa68df3ed8f2549819ef249f6ed8e8111990e6ff99315dd9e438f393c3f83ac",5"allowed": false,6"reject-reason": "missing-inputs"7}8],9"error": null,10"id": 111}