BlockchainTransactionSubmit (for Ethereum)
BlockchainTransactionSubmit[obj]
BlockchainTransactionオブジェクト obj の中で指定されたトランザクションを,イーサリアムブロックチェーンに送信する.
詳細
- BlockchainTransactionSubmit[obj]は,将来のブロックに含めるために,トランザクションをイーサリアムのノードに送信する.
- BlockchainTransactionSubmitは,特性"TransactionID"が追加されたBlockchainTransactionオブジェクトを返す.
- BlockchainTransactionDataをBlockchainTransactionSubmitの結果に適用して,送信したトランザクションがイーサリアムブロックチェーンに加えられたかどうかを判定することができる.
- BlockchainTransactionSubmitは,イーサリアムのメインネット(デフォルト)およびテストネット(Sepolia)にトランザクションを送信できる.これらのネットワークはBlockchainTransactionオブジェクトで指定される.
例題
例 (1)
イーサリアムBlockchainTransactionを作る:
ethTX = BlockchainTransaction[<|"BlockchainBase" -> {"Ethereum", "Testnet"},
"TransactionCount" -> 11,
"GasPrice" -> Quantity[150, "GWei"],
"Address" -> "61cccDcDb7617d01239D0Cfc7D1627e39EA2a2c3",
"Amount" -> Quantity[0.50, "Ethers"]|>]ethTXSigned = BlockchainTransactionSign[ethTX, PrivateKey[Association["Type" -> "EllipticCurve", "CurveName" -> "secp256k1",
"PublicCurvePoint" ->
{16676173248318435135530093705658075451448270649776782441185582813615674064589,
86146693258001150152237806044792681696883435827253397319 ... 84,
"Compressed" -> False, "PublicByteArray" ->
ByteArray[
"BCTeYSvTb1h4i8B8nUtJrM//zRHHu7GdlW16oP8LZ37NvnVM7PCJ8Qms/BwonG76LAj2PCP+VGbfyw1cFM21dNI="],
"PrivateByteArray" -> ByteArray["q/aGR9Z8/pp7h2fSVcu50AHSi8r4pHPKW97/exaY34w="]]]]署名済みのトランザクションをイーサリアムブロックチェーンに送信する:
ethTXSubmit = BlockchainTransactionSubmit[ethTXSigned]トランザクションを,その"TransactionID"を使って確かめる:
txdata = BlockchainTransactionData[ethTXSubmit["TransactionID"], BlockchainBase -> {"Ethereum", "Testnet"}]関連するガイド
履歴
2019 で導入 (12.0)
テキスト
Wolfram Research (2019), BlockchainTransactionSubmit, Wolfram言語関数, https://reference.wolfram.com/language/ref/blockchain/BlockchainTransactionSubmit-Ethereum.html.
CMS
Wolfram Language. 2019. "BlockchainTransactionSubmit." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/blockchain/BlockchainTransactionSubmit-Ethereum.html.
APA
Wolfram Language. (2019). BlockchainTransactionSubmit. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/blockchain/BlockchainTransactionSubmit-Ethereum.html
BibTeX
@misc{reference.wolfram_2026_blockchaintransactionsubmit, author="Wolfram Research", title="{BlockchainTransactionSubmit}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/blockchain/BlockchainTransactionSubmit-Ethereum.html}", note=[Accessed: 15-August-2026]}
BibLaTeX
@online{reference.wolfram_2026_blockchaintransactionsubmit, organization={Wolfram Research}, title={BlockchainTransactionSubmit}, year={2019}, url={https://reference.wolfram.com/language/ref/blockchain/BlockchainTransactionSubmit-Ethereum.html}, note=[Accessed: 15-August-2026]}