Add a RPC call to verify a set of raw transactions without propagating them. It has an extensible API to customize verification options.
Implements #4162.
verifyrawtransactions ["hexstring",...] ( options )
Verifies one or more raw transactions (serialized, hex-encoded). If transactions depend on each other, they must be provided in order.
Arguments:
1. ["hexstring",...] (array of strings, required) The hex string of the raw transactions)
2. options (json object, optional)
{
"include_mempool" (boolean, optional, default=true) Whether to include the mem pool
"check_final" (boolean, optional, default=true) Check that the transactions will be final by next block
"check_standard" (boolean, optional, default=true) Perform transaction standard checks
}
Result:
null if the verification was successful, otherwise an error object:
{
"index":n, (numeric) Index in transactions array of failed transaction
"hash":"hex", (string) Transaction hash of failed transaction
"code": n, (numeric) Reject code
"reason": "text" (string) Reject reason
"debug_message": "text" (string) Reject debug message
}
TODO:
RPC testCallAreInputsStandard()to check inputs for standardness