BlockchainTransaction[assoc]
represents a blockchain transaction built from the components in the association assoc.
BlockchainTransaction
Versions for specific blockchains »BlockchainTransaction[assoc]
represents a blockchain transaction built from the components in the association assoc.
Details and Options
- BlockchainTransaction gives a symbolic representation of a blockchain transaction; it does not submit the transaction, and the transaction is not signed.
- BlockchainTransaction[…][prop] gives the value of the property prop for the transaction.
- To specify a transaction, the following element must be given in the association:
-
"BlockchainBase" blockchain base to use
Examples
open all close allBasic Examples (1)
Create a Bitcoin transaction object representing a Pay-to-Public-Key-Hash transaction:
BlockchainTransaction[<|"Inputs" -> {<|"TransactionID" -> "9bef194418607318673caaf8f45d52fb60e8c8586e6ce8414c377a279ca14399", "Index" -> 0|>}, "Outputs" -> {<|"Amount" -> Quantity[0.0002, "Bitcoins"], "Address" -> "munDTMqa9V9Uhi3P21FpkY8UfYzvQqpmoQ"|>, <|"Amount" -> Quantity[0.16223, "Bitcoins"], "Address" -> "mo9QWLSJ1g1ENrTkhK9SSyw7cYJfJLU8QH"|>}, "BlockchainBase" -> {"Bitcoin", "Testnet"}|>]Options (7)
BlockchainBase (7)
Create an Ethereum transaction object to send ether:
BlockchainTransaction[<|"TransactionCount" -> 58,
"GasPrice" -> Quantity[1, "GWei"],
"Address" -> "3535353535353535353535353535353535353535",
"Amount" -> Quantity[0.0025, "Ethers"]|>,
BlockchainBase -> {"Ethereum", "Testnet"}]Create an ARK transaction object representing a "Transfer" transaction:
BlockchainTransaction[<|
"Recipient" -> "DLesojAmpcA4jQbJDz5JKQ73k1RervJwfi",
"Amount" -> 5000000|>, BlockchainBase -> {"ARK", "Devnet"}]Create a bloxberg transaction object to send bergs:
BlockchainTransaction[<|"TransactionCount" -> 58,
"GasPrice" -> Quantity[0, "bergs"], "Address" -> "2cdFffD8B15BDa30b4573B1b22Dce2d23ac86D26"|>, BlockchainBase -> "Bloxberg"]Create a Tezos transaction object representing a "Transaction" operation:
BlockchainTransaction[<|
"Type" -> "Transaction",
"Sender" -> "tz1YeQkgxvzVroTyMh72DrmNRsyzQfsBmxt8",
"Target" -> "tz2VEaCRQvU2QJ3eSk6ysy599PLx7oq4nApw",
"Amount" -> 10000000|>, BlockchainBase -> {"Tezos", "Testnet"}]Create a Cardano transaction object to transfer ada cryptocurrency:
BlockchainTransaction[<|
"Inputs" -> {
<|"TransactionID" -> "3cdc4c717fe0afc9719773d98bcb8bb973812609ae0a2a830bb92d92f0db54d8",
"Index" -> 0, "Amount" -> Quantity[10000000000, "CardanoLovelace"]|>
},
"Outputs" -> {
<|"Address" ->
"addr_test1vp849fern55cadj000n0ax200nvquaakutj4ahm3u6e2w2cyfnzpj",
"Amount" -> Quantity[1000000, "CardanoLovelace"]|>,
<|"Address" ->
"addr_test1vpyz5dxamauqdp60rgccfk47wkjsfyjnysqhhf04lpm063q8jq6nd",
"Amount" -> Quantity[9998800000, "CardanoLovelace"]|>
}
|>, BlockchainBase -> {"Cardano", "Testnet"}]Create a Litecoin transaction object representing a Pay-to-Public-Key-Hash transaction:
BlockchainTransaction[<|"Inputs" -> {<|"TransactionID" -> "5f38f453a3a36b540fd11480f9e07ae02ed14206e4a21ff351898b16b1615a79", "Index" -> 1|>}, "Outputs" -> {<|"Amount" -> Quantity[0.0001, "Litecoins"], "Address" -> "munDTMqa9V9Uhi3P21FpkY8UfYzvQqpmoQ"|>,
<|"Amount" -> Quantity[0.09977, "Litecoins"], "Address" -> "n2oz9uoyx2i5uj9wwPkj1sXN6dm8efe7n9"|>}|>, BlockchainBase -> {"Litecoin", "Testnet"}]Create a Bitcoin Cash transaction object representing a Pay-to-Public-Key-Hash transaction:
BlockchainTransaction[<|"Inputs" -> {<|"TransactionID" -> "4fe6465bbf9ffbd621445e520126aba538d59175a0ba3c6089225e9efbea0a67", "Index" -> 1|>}, "Outputs" -> {<|"Amount" -> Quantity[0.0001, "BitcoinCashUnits"], "Address" -> "bchtest:qp7ykfna6xndcyhr5j9h5xx59xj57tvawvjc0de029"|>,
<|"Amount" -> Quantity[0.008645, "BitcoinCashUnits"], "Address" -> "bchtest:qrm5whh48dvqwlza8kjete78ttsudpz0vs9r7l7arp"|>}|>, BlockchainBase -> {"BitcoinCash", "Testnet"}]Related Guides
Related Workflows
- Create a Standard Transaction in Bitcoin ▪
- Send Ether
History
Text
Wolfram Research (2019), BlockchainTransaction, Wolfram Language function, https://reference.wolfram.com/language/ref/BlockchainTransaction.html.
CMS
Wolfram Language. 2019. "BlockchainTransaction." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/BlockchainTransaction.html.
APA
Wolfram Language. (2019). BlockchainTransaction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/BlockchainTransaction.html
BibTeX
@misc{reference.wolfram_2026_blockchaintransaction, author="Wolfram Research", title="{BlockchainTransaction}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/BlockchainTransaction.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_blockchaintransaction, organization={Wolfram Research}, title={BlockchainTransaction}, year={2019}, url={https://reference.wolfram.com/language/ref/BlockchainTransaction.html}, note=[Accessed: 12-June-2026]}