Example code for the signrawtransaction json-rpc method. Сomplete guide on how to use signrawtransaction json-rpc in GetBlock.io Web3 documentation.
Parameters
hexstring - string
The transaction hex string.
prevtxs - string
Optional.
An json array of previous dependent transaction outputs.
privatekeys - string
Optional
A json array of base58-encoded private keys for signing.
sighashtype - string
Optional, default=ALL
The signature hash type. Must be one of
ALL
NONE
SINGLE
ALL|ANYONECANPAY
NONE|ANYONECANPAY
SINGLE|ANYONECANPAY
branchid - string
Optional
The hex representation of the consensus branch id to sign with. This can be used to force signing with consensus rules that are ahead of the node's current height.