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.
0verifyrawtransactions ["hexstring",...] ( options )
1
2Verifies one or more raw transactions (serialized, hex-encoded). If transactions depend on each other, they must be provided in order.
3
4Arguments:
51. ["hexstring",...] (array of strings, required) The hex string of the raw transactions)
62. options (json object, optional)
7 {
8 "include_mempool" (boolean, optional, default=true) Whether to include the mem pool
9 "check_final" (boolean, optional, default=true) Check that the transactions will be final by next block
10 "check_standard" (boolean, optional, default=true) Perform transaction standard checks
11 }
12
13Result:
14null if the verification was successful, otherwise an error object:
15{
16 "index":n, (numeric) Index in transactions array of failed transaction
17 "hash":"hex", (string) Transaction hash of failed transaction
18 "code": n, (numeric) Reject code
19 "reason": "text" (string) Reject reason
20 "debug_message": "text" (string) Reject debug message
21}
TODO:
RPC testCallAreInputsStandard()
to check inputs for standardness