forked from bitcoin/bitcoin
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a RPC call to verify a set of raw transactions without propagating them. Implements bitcoin#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 }
- Loading branch information
Showing
4 changed files
with
119 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters