BlockchainTransactionSign (for Bitcoin)
BlockchainTransactionSign[obj,key]
digitally signs a Bitcoin blockchain transaction using the specified private key.
BlockchainTransactionSign[obj,{key1,key2,…}]
digitally signs a transaction using all the keys keyi.
Details
- Digitally signs a Bitcoin blockchain transaction using the specified private key.
- In BlockchainTransactionSign[obj,…], obj is a BlockchainTransaction object.
- The key for BlockchainTransactionSign must be a PrivateKey object or a hex string representing a private key.
- BlockchainTransactionSign returns a blockchain transaction object with True as the value of its property "Signed" and with the added property "RawTransaction".
- For a Bitcoin BlockchainTransaction object, BlockchainTransactionSign will use the value of the property "SignatureHash" provided with each input to determine the appropriate digital signature method. Only Pay-to-Public-Key-Hash is used to sign the transaction.
- Multiple private keys can be given in any order.
Examples
open allclose allBasic Examples (1)
Create a Bitcoin Pay-to-Public-Key-Hash BlockchainTransaction:
Sign the transaction object using a WIF-encoded private key:
Applications (1)
Create a Bitcoin Pay-to-Public-Key-Hash BlockchainTransaction:
Sign the transaction object using a WIF-encoded private key:
Possible Issues (1)
Incorrect Private Key (1)
Providing an invalid private key will return a $Failed output:

Text
Wolfram Research (2019), BlockchainTransactionSign, Wolfram Language function, https://reference.wolfram.com/language/ref/blockchain/BlockchainTransactionSign-Bitcoin.html.
CMS
Wolfram Language. 2019. "BlockchainTransactionSign." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/blockchain/BlockchainTransactionSign-Bitcoin.html.
APA
Wolfram Language. (2019). BlockchainTransactionSign. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/blockchain/BlockchainTransactionSign-Bitcoin.html