BlockchainTransactionSubmit[obj]
submits the transaction specified in the BlockchainTransaction object obj to a blockchain.
BlockchainTransactionSubmit
Versions for specific blockchains »BlockchainTransactionSubmit[obj]
submits the transaction specified in the BlockchainTransaction object obj to a blockchain.
Details
- BlockchainTransactionSubmit[obj] sends obj to a node of the appropriate blockchain, submitting it for inclusion in a future block.
- BlockchainTransactionSubmit uses the "BlockchainBase" property of the provided BlockchainTransaction object to connect to the appropriate blockchain.
- BlockchainTransactionSubmit will return a BlockchainTransaction object with the added property "TransactionID".
- BlockchainTransactionData can be applied to the result from BlockchainTransactionSubmit to determine if the submitted transaction has yet been added to the blockchain.
Examples
Basic Examples (1)
Create a Bitcoin Pay-to-Public-Key-Hash BlockchainTransaction:
btcTX = BlockchainTransaction[<|
"Inputs" -> {
<|"TransactionID" -> "79bd95a5c087cfc33904020b3cd31b11b97be7751c8a1ca57c5313d4ac848830", "Index" -> 0|>},
"Outputs" -> {
<|"Amount" -> Quantity[0.005, "Bitcoins"], "Address" -> "mgPhDaCzXcm4gmkxfz9sZKvpabmNGdLj52"|>,
<|"Amount" -> Quantity[0.044, "Bitcoins"], "Address" -> "mkHGstoUaDWzGxag29MEnp8WJPpfA45omK"|>},
"BlockchainBase" -> {"Bitcoin", "Testnet"}|>]Sign the transaction object using a WIF-encoded private key:
btcTXSigned = BlockchainTransactionSign[btcTX, "cVN2fsWXoxMkPGx5EL7X6grykQ3VSDfHPUg3CJhD8AC9pJ5y8Nhi"]Send the signed transaction to the Bitcoin blockchain:
BlockchainTransactionSubmit[btcTXSigned]Related Guides
Related Workflows
- Create a Standard Transaction in Bitcoin ▪
- Send Ether
History
Text
Wolfram Research (2019), BlockchainTransactionSubmit, Wolfram Language function, https://reference.wolfram.com/language/ref/BlockchainTransactionSubmit.html.
CMS
Wolfram Language. 2019. "BlockchainTransactionSubmit." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/BlockchainTransactionSubmit.html.
APA
Wolfram Language. (2019). BlockchainTransactionSubmit. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/BlockchainTransactionSubmit.html
BibTeX
@misc{reference.wolfram_2026_blockchaintransactionsubmit, author="Wolfram Research", title="{BlockchainTransactionSubmit}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/BlockchainTransactionSubmit.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_blockchaintransactionsubmit, organization={Wolfram Research}, title={BlockchainTransactionSubmit}, year={2019}, url={https://reference.wolfram.com/language/ref/BlockchainTransactionSubmit.html}, note=[Accessed: 12-June-2026]}