BlockchainTransactionSign (for bloxberg)
BlockchainTransactionSign[obj,key]
digitally signs a bloxberg blockchain transaction using the specified private key.
Details
- 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".
Examples
open all close allBasic Examples (1)
Create a bloxberg BlockchainTransaction:
bloxbergTX = BlockchainTransaction[<|"BlockchainBase" -> "Bloxberg", "TransactionCount" -> 1, "Address" -> "2cdFffD8B15BDa30b4573B1b22Dce2d23ac86D26", "Amount" -> Quantity[1, "Gbrox"], "GasPrice" -> Quantity[0, "bergs"]|>]bloxbergTXSigned = BlockchainTransactionSign[bloxbergTX, PrivateKey[Association["Type" -> "EllipticCurve", "CurveName" -> "secp256k1",
"PublicCurvePoint" ->
{27112075690151519677987005437167591271987576467999908152870704903750742697008,
35340190558986655200725209493311762384517889396024615752 ... 00,
"Compressed" -> False, "PublicByteArray" ->
ByteArray[
"BDvw5BsUAEh0WY7CgBHAK7sPRruT/rr3xpRgF8gws+QwTiHWyeDrK7K9R5em/dkrhBgnuVzVxgAu9FWlEguegoo="],
"PrivateByteArray" -> ByteArray["v9Uxg5+nffM+nupc+AIqiN1/qBisfHUlPZsiJpZYauw="]]]]Applications (1)
Create a bloxberg BlockchainTransaction:
bloxbergTX = BlockchainTransaction[<|"BlockchainBase" -> "Bloxberg", "TransactionCount" -> 1, "Address" -> "2cdFffD8B15BDa30b4573B1b22Dce2d23ac86D26", "Amount" -> Quantity[1, "Gbrox"], "GasPrice" -> Quantity[0, "bergs"]|>]bloxbergTXSigned = BlockchainTransactionSign[bloxbergTX, PrivateKey[Association["Type" -> "EllipticCurve", "CurveName" -> "secp256k1",
"PublicCurvePoint" ->
{27112075690151519677987005437167591271987576467999908152870704903750742697008,
35340190558986655200725209493311762384517889396024615752 ... 00,
"Compressed" -> False, "PublicByteArray" ->
ByteArray[
"BDvw5BsUAEh0WY7CgBHAK7sPRruT/rr3xpRgF8gws+QwTiHWyeDrK7K9R5em/dkrhBgnuVzVxgAu9FWlEguegoo="],
"PrivateByteArray" -> ByteArray["v9Uxg5+nffM+nupc+AIqiN1/qBisfHUlPZsiJpZYauw="]]]]Send the signed transaction to the bloxberg blockchain:
bloxbergTXSubmitted = BlockchainTransactionSubmit[bloxbergTXSigned]Verify the transaction using its "TransactionID":
bloxbergTXSubmitted["TransactionID"]txdata = BlockchainTransactionData[bloxbergTXSubmitted["TransactionID"], BlockchainBase -> "Bloxberg"]//DatasetPossible Issues (1)
Incorrect Private Key (1)
Providing an invalid private key will return a $Failed output:
tx = BlockchainTransaction[Association["BlockchainBase" -> "bloxberg", "Signed" -> False,
"TransactionCount" -> 1, "GasPrice" -> Quantity[0, "bergs"], "GasLimit" -> 25200,
"Fee" -> Quantity[0, "brox"], "Address" -> "2cdFffD8B15BDa30b4573B1b22Dce2d23ac86D26",
"Amount" -> Quantity[1, "Gbrox"], "MessageHash" ->
"bbd3ae394da93f23d39e5c48705565673e8813d426e2f467367aac49d8dc8aa3"]];BlockchainTransactionSign[tx, "AAAAAA"]Related Guides
History
Introduced in 2020 (12.1)
Text
Wolfram Research (2020), BlockchainTransactionSign, Wolfram Language function, https://reference.wolfram.com/language/ref/blockchain/BlockchainTransactionSign-bloxberg.html.
CMS
Wolfram Language. 2020. "BlockchainTransactionSign." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/blockchain/BlockchainTransactionSign-bloxberg.html.
APA
Wolfram Language. (2020). BlockchainTransactionSign. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/blockchain/BlockchainTransactionSign-bloxberg.html
BibTeX
@misc{reference.wolfram_2026_blockchaintransactionsign, author="Wolfram Research", title="{BlockchainTransactionSign}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/blockchain/BlockchainTransactionSign-bloxberg.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_blockchaintransactionsign, organization={Wolfram Research}, title={BlockchainTransactionSign}, year={2020}, url={https://reference.wolfram.com/language/ref/blockchain/BlockchainTransactionSign-bloxberg.html}, note=[Accessed: 13-June-2026]}