BlockchainTransaction (for Tezos)
BlockchainTransaction[assoc]
連想 assoc の成分から構築されたテゾスブロックチェーンのオペレーションを表す.
詳細
- テゾスブロックチェーンオペレーションの記号表現を与える.オペレーションの送信は行わず,オペレーションに署名もしない.
- BlockchainTransaction[…][prop]は,オペレーションのために特性 prop の値を与える.
- 次は,サポートされるテゾスオペレーションタイプである.タイプは連想 assoc の"Type"要素で指定される.
-
"Transaction" 2つのアカウント間でtezを移動する,あるいはスマートコントラクトでコードを実行するオペレーション "Delegation" アカウント残高をデリゲートに貸し出すオペレーション "Origination" スマートコントラクトを作成するオペレーション "Reveal" アカウントの公開鍵を開示するオペレーション - タイプ"Transaction"のオペレーションには以下の要素を与えなければならない.
-
"BlockchainBase" 使用するブロックチェーンのベース "Sender" 送信者アドレス "Target" 受信者アドレス "Amount" 移動するmutezの量 - タイプ"Transaction"には,以下の追加的な要素が使える.
-
"Type" オペレーションタイプ "Branch" ブランチ(ブロック)のハッシュ "TransactionCount" 現行送信者のトランザクション数+1 "BakerFee" 含める手数料(単位:mutez) "GasLimit" 実行するためのガスの最大量 "StorageLimit" 使用するストレージの最大量 "Parameters" 契約に送信するパラメータ - タイプ"Delegation"のオペレーションに対しては,次の要素を与えなければならない.
-
"BlockchainBase" 使用するブロックチェーンのベース "Type" オペレーションタイプ "Sender" 送信者アドレス "Delegate" デリゲートのアドレス(デリゲートを撤回した場合はNone) - タイプ"Delegation"には,以下の追加的な要素が使える.
-
"Branch" ブランチ(ブロック)のハッシュ "TransactionCount" 現行送信者のトランザクション数+1 "BakerFee" 含める手数料(単位:mutez) "GasLimit" 実行するためのガスの最大量 "StorageLimit" 使用するストレージの最大量 - タイプ"Origination"には,以下の追加的な要素が使える.
-
"BlockchainBase" 使用するブロックチェーンのベース "Type" オペレーションタイプ "Sender" 送信者アドレス "Balance" 契約の初期残高 "Contract" 契約の詳細 - タイプ"Origination"には,以下の追加的な要素が使える.
-
"Branch" ブランチ(ブロック)のハッシュ "TransactionCount" 現行送信者のトランザクション数+1 "BakerFee" 含める手数料(単位:mutez) "GasLimit" 実行するためのガスの最大量 "StorageLimit" 使用するストレージの最大量 "Delegate" 契約が賭けられたデリゲートのアドレス - タイプ"Reveal"のオペレーションに対しては,次の要素を与えなければならない.
-
"BlockchainBase" 使用するブロックチェーンのベース "Type" オペレーションタイプ "Sender" 送信者アドレス "SenderPublicKey" 開示される送信者の公開鍵 - タイプ"Reveal"には,以下の追加的な要素が使える.
-
"Branch" ブランチ(ブロック)のハッシュ "TransactionCount" 現行送信者のトランザクション数+1 "BakerFee" 含める手数料(単位:mutez) "GasLimit" 実行するためのガスの最大量 "StorageLimit" 使用するストレージの最大量 - "Parameters"の値は以下のキーを持つ連想である.
-
"EntryPoint" 呼び出す契約の関数名 "Value" Micheline JSON式のルールベース表現としての関数の引数 - "Contract"の値は以下のキーを持つ連想である.
-
"Storage" Micheline JSON式のルールベース表現としての初期ストレージ値 "Code" 契約コード - "Code"の値は,Micheline JSON式のルールベース表現,Micheline JSONスクリプトを含むファイル,あるいはLIGOスクリプトを含むファイルでよい.
- BlockchainTransactionは,テゾスメインネット(デフォルト)とテストネット(Shadownet)の操作を表す.これらのネットワークの指定には,必要とされる連想の中かBlockchainBase オプションで"BlockchainBase"の値を使う.
例題
すべて開く すべて閉じる例 (1)
スコープ (30)
トランザクションオペレーション (7)
"Transaction"オペレーションを作成して宛先アカウントに資金を送金する.指定されていない要素には自動的な値が使われる:
BlockchainTransaction[<|
"BlockchainBase" -> {"Tezos", "Testnet"},
"Type" -> "Transaction",
"Sender" -> "tz1YeQkgxvzVroTyMh72DrmNRsyzQfsBmxt8",
"Target" -> "tz2VEaCRQvU2QJ3eSk6ysy599PLx7oq4nApw",
"Amount" -> 10000000|>]"Transaction"オペレーションを作成してブランチを指定する:
BlockchainTransaction[<|
"BlockchainBase" -> {"Tezos", "Testnet"},
"Type" -> "Transaction",
"Sender" -> "tz1YeQkgxvzVroTyMh72DrmNRsyzQfsBmxt8",
"Target" -> "tz2VEaCRQvU2QJ3eSk6ysy599PLx7oq4nApw",
"Amount" -> 10000000,
"Branch" -> "BM81gGDhbDivmSvoFys1Duew7B3MoPtGi5M7jHZYcyXo64Bpd4j"
|>]"Transaction"オペレーションを作成してトランザクション数を指定する:
txCount = BlockchainAddressData["tz1YeQkgxvzVroTyMh72DrmNRsyzQfsBmxt8", "TransactionCount", BlockchainBase -> {"Tezos", "Testnet"}]BlockchainTransaction[<|
"BlockchainBase" -> {"Tezos", "Testnet"},
"Type" -> "Transaction",
"Sender" -> "tz1YeQkgxvzVroTyMh72DrmNRsyzQfsBmxt8",
"Target" -> "tz2VEaCRQvU2QJ3eSk6ysy599PLx7oq4nApw",
"Amount" -> 100000,
"TransactionCount" -> txCount + 1
|>]"Transaction"オペレーションを作成してベイカー手数料を指定する:
BlockchainTransaction[<|
"BlockchainBase" -> {"Tezos", "Testnet"},
"Type" -> "Transaction",
"Sender" -> "tz1YeQkgxvzVroTyMh72DrmNRsyzQfsBmxt8",
"Target" -> "tz2VEaCRQvU2QJ3eSk6ysy599PLx7oq4nApw",
"Amount" -> 10000000,
"BakerFee" -> 30000
|>]"Transaction"オペレーションを作成してガスの上限を指定する:
BlockchainTransaction[<|
"BlockchainBase" -> {"Tezos", "Testnet"},
"Type" -> "Transaction",
"Sender" -> "tz1YeQkgxvzVroTyMh72DrmNRsyzQfsBmxt8",
"Target" -> "tz2VEaCRQvU2QJ3eSk6ysy599PLx7oq4nApw",
"Amount" -> 10000000,
"GasLimit" -> 666666
|>]"Transaction"オペレーションを作成してストレージの上限を指定する:
BlockchainTransaction[<|
"BlockchainBase" -> {"Tezos", "Testnet"},
"Type" -> "Transaction",
"Sender" -> "tz1YeQkgxvzVroTyMh72DrmNRsyzQfsBmxt8",
"Target" -> "tz2VEaCRQvU2QJ3eSk6ysy599PLx7oq4nApw",
"Amount" -> 10000000,
"StorageLimit" -> 666
|>]"Transaction"オペレーションを作成して契約とインタラクトする:
contract = First[DeleteMissing[Lookup[BlockchainAddressData["tz1YeQkgxvzVroTyMh72DrmNRsyzQfsBmxt8", "TransactionList", BlockchainBase -> {"Tezos", "Testnet"}], "Contract"]]]BlockchainTransaction[<|
"BlockchainBase" -> {"Tezos", "Testnet"},
"Type" -> "Transaction",
"Sender" -> "tz1YeQkgxvzVroTyMh72DrmNRsyzQfsBmxt8",
"Target" -> contract,
"Amount" -> 0,
"Parameters" -> <|"EntryPoint" -> "default", "Value" -> <|"string" -> "test to extend the storage"|>|>
|>]デリゲーションオペレーション (8)
"Delegation"オペレーションを作成してデリゲートとして登録する."Sender"と"Delegate"のどちらの値も同じである.指定されていない要素には自動の値が使われる:
myAddress = "tz3TEn7dTBiNzJbL3eH3WgEamttC8zRGA9La";
BlockchainTransaction[<|
"BlockchainBase" -> {"Tezos", "Testnet"},
"Type" -> "Delegation",
"Sender" -> myAddress,
"Delegate" -> myAddress|>]"Delegation"オペレーションを作成してデリゲートに賭ける.指定されていない要素には自動の値が使われる:
myAddress = "tz3TEn7dTBiNzJbL3eH3WgEamttC8zRGA9La";
delegateAddress = "tz1YeQkgxvzVroTyMh72DrmNRsyzQfsBmxt8";
BlockchainTransaction[<|
"BlockchainBase" -> {"Tezos", "Testnet"},
"Type" -> "Delegation",
"Sender" -> myAddress,
"Delegate" -> delegateAddress|>]"Delegation"オペレーションを作成し,デリゲーションを撤回することで賭けをキャンセルする.これを行うためには"Delegate"の値がNoneでなければならない.指定されていない要素には自動の値が使われる:
myAddress = "tz3TEn7dTBiNzJbL3eH3WgEamttC8zRGA9La";
BlockchainTransaction[<|
"BlockchainBase" -> {"Tezos", "Testnet"},
"Type" -> "Delegation",
"Sender" -> myAddress,
"Delegate" -> None|>]"Delegation"オペレーションを作成してブランチを指定する:
BlockchainTransaction[<|
"BlockchainBase" -> {"Tezos", "Testnet"},
"Type" -> "Delegation",
"Sender" -> "tz3TEn7dTBiNzJbL3eH3WgEamttC8zRGA9La",
"Delegate" -> "tz3TEn7dTBiNzJbL3eH3WgEamttC8zRGA9La",
"Branch" -> "BLD11WaZ1gpfGuPBFCX4BkBgXoorBb9i76YLVrpKYqWdhETVSSv"|>]"Delegation"オペレーションを作成してトランザクション数を指定する:
txCount = BlockchainAddressData["tz3TEn7dTBiNzJbL3eH3WgEamttC8zRGA9La", "TransactionCount", BlockchainBase -> {"Tezos", "Testnet"}]BlockchainTransaction[<|
"BlockchainBase" -> {"Tezos", "Testnet"},
"Type" -> "Delegation",
"Sender" -> "tz3TEn7dTBiNzJbL3eH3WgEamttC8zRGA9La",
"Delegate" -> "tz3TEn7dTBiNzJbL3eH3WgEamttC8zRGA9La",
"TransactionCount" -> txCount + 1|>]"Delegation"オペレーションを作成してベイカー手数料を指定する:
BlockchainTransaction[<|
"BlockchainBase" -> {"Tezos", "Testnet"},
"Type" -> "Delegation",
"Sender" -> "tz3TEn7dTBiNzJbL3eH3WgEamttC8zRGA9La",
"Delegate" -> "tz3TEn7dTBiNzJbL3eH3WgEamttC8zRGA9La",
"BakerFee" -> 10000|>]"Delegation"オペレーションを作成してガスの上限を指定する:
BlockchainTransaction[<|
"BlockchainBase" -> {"Tezos", "Testnet"},
"Type" -> "Delegation",
"Sender" -> "tz3TEn7dTBiNzJbL3eH3WgEamttC8zRGA9La",
"Delegate" -> "tz3TEn7dTBiNzJbL3eH3WgEamttC8zRGA9La",
"GasLimit" -> 666666|>]"Delegation"オペレーションを作成してストレージの上限を指定する:
BlockchainTransaction[<|
"BlockchainBase" -> {"Tezos", "Testnet"},
"Type" -> "Delegation",
"Sender" -> "tz3TEn7dTBiNzJbL3eH3WgEamttC8zRGA9La",
"Delegate" -> "tz3TEn7dTBiNzJbL3eH3WgEamttC8zRGA9La",
"StorageLimit" -> 666|>]オリジネーションオペレーション (9)
"Origination"オペレーションを作成し,Micheline JSON式の規則に基づく表現としてコードを与えることで契約を作成する.指定されていない要素には自動の値が使われる:
BlockchainTransaction[<|
"BlockchainBase" -> {"Tezos", "Testnet"},
"Type" -> "Origination",
"Sender" -> "tz1YeQkgxvzVroTyMh72DrmNRsyzQfsBmxt8",
"Balance" -> 100,
"Contract" -> <|
"Storage" -> <|"string" -> "hello"|>,
"Code" -> {<|"prim" -> "parameter", "args" -> {<|"prim" -> "string"|>}|>, <|"prim" -> "storage", "args" -> {<|"prim" -> "string"|>}|>, <|"prim" -> "code", "args" -> {{<|"prim" -> "CAR"|>, <|"prim" -> "NIL", "args" -> {<|"prim" -> "operation"|>}|>, <|"prim" -> "PAIR"|>}}|>}
|>
|>]"Origination"オペレーションを作成し,Michelineファイルを与えることで契約を作成する.指定されていない要素には自動の値が使われる:
BlockchainTransaction[<|
"BlockchainBase" -> {"Tezos", "Testnet"},
"Type" -> "Origination",
"Sender" -> "tz1YeQkgxvzVroTyMh72DrmNRsyzQfsBmxt8",
"Balance" -> 100,
"Contract" -> <|
"Storage" -> <|"int" -> "1"|>,
"Code" -> File["ExampleData/MichelineSample.json"]
|>
|>]"Origination"オペレーションを作成し,LIGOファイルを与えることで契約を作成する.指定されていない要素には自動の値が使われる:
BlockchainTransaction[<|
"BlockchainBase" -> {"Tezos", "Testnet"},
"Type" -> "Origination",
"Sender" -> "tz1YeQkgxvzVroTyMh72DrmNRsyzQfsBmxt8",
"Balance" -> 100,
"Contract" -> <|
"Storage" -> <|"int" -> "1"|>,
"Code" -> File["ExampleData/LIGOSample.ligo"]
|>
|>]"Origination"オペレーションを作成してブランチを指定する:
BlockchainTransaction[<|
"BlockchainBase" -> {"Tezos", "Testnet"},
"Type" -> "Origination",
"Sender" -> "tz1YeQkgxvzVroTyMh72DrmNRsyzQfsBmxt8",
"Balance" -> 100,
"Contract" -> <|
"Storage" -> <|"string" -> "hello"|>,
"Code" -> {<|"prim" -> "parameter", "args" -> {<|"prim" -> "string"|>}|>, <|"prim" -> "storage", "args" -> {<|"prim" -> "string"|>}|>, <|"prim" -> "code", "args" -> {{<|"prim" -> "CAR"|>, <|"prim" -> "NIL", "args" -> {<|"prim" -> "operation"|>}|>, <|"prim" -> "PAIR"|>}}|>}
|>,
"Branch" -> "BLD11WaZ1gpfGuPBFCX4BkBgXoorBb9i76YLVrpKYqWdhETVSSv"
|>]"Origination"オペレーションを作成してトランザクション数を指定する:
txCount = BlockchainAddressData["tz1YeQkgxvzVroTyMh72DrmNRsyzQfsBmxt8", "TransactionCount", BlockchainBase -> {"Tezos", "Testnet"}]BlockchainTransaction[<|
"BlockchainBase" -> {"Tezos", "Testnet"},
"Type" -> "Origination",
"Sender" -> "tz1YeQkgxvzVroTyMh72DrmNRsyzQfsBmxt8",
"Balance" -> 100,
"Contract" -> <|
"Storage" -> <|"string" -> "hello"|>,
"Code" -> {<|"prim" -> "parameter", "args" -> {<|"prim" -> "string"|>}|>, <|"prim" -> "storage", "args" -> {<|"prim" -> "string"|>}|>, <|"prim" -> "code", "args" -> {{<|"prim" -> "CAR"|>, <|"prim" -> "NIL", "args" -> {<|"prim" -> "operation"|>}|>, <|"prim" -> "PAIR"|>}}|>}
|>,
"TransactionCount" -> txCount + 1
|>]"Origination"オペレーションを作成してベイカー手数料を指定する:
BlockchainTransaction[<|
"BlockchainBase" -> {"Tezos", "Testnet"},
"Type" -> "Origination",
"Sender" -> "tz1YeQkgxvzVroTyMh72DrmNRsyzQfsBmxt8",
"Balance" -> 100,
"Contract" -> <|
"Storage" -> <|"string" -> "hello"|>,
"Code" -> {<|"prim" -> "parameter", "args" -> {<|"prim" -> "string"|>}|>, <|"prim" -> "storage", "args" -> {<|"prim" -> "string"|>}|>, <|"prim" -> "code", "args" -> {{<|"prim" -> "CAR"|>, <|"prim" -> "NIL", "args" -> {<|"prim" -> "operation"|>}|>, <|"prim" -> "PAIR"|>}}|>}
|>,
"BakerFee" -> 10000
|>]"Origination"オペレーションを作成してガスの上限を指定する:
BlockchainTransaction[<|
"BlockchainBase" -> {"Tezos", "Testnet"},
"Type" -> "Origination",
"Sender" -> "tz1YeQkgxvzVroTyMh72DrmNRsyzQfsBmxt8",
"Balance" -> 100,
"Contract" -> <|
"Storage" -> <|"string" -> "hello"|>,
"Code" -> {<|"prim" -> "parameter", "args" -> {<|"prim" -> "string"|>}|>, <|"prim" -> "storage", "args" -> {<|"prim" -> "string"|>}|>, <|"prim" -> "code", "args" -> {{<|"prim" -> "CAR"|>, <|"prim" -> "NIL", "args" -> {<|"prim" -> "operation"|>}|>, <|"prim" -> "PAIR"|>}}|>}
|>,
"GasLimit" -> 666666
|>]"Origination"オペレーションを作成してストレージの上限を指定する:
BlockchainTransaction[<|
"BlockchainBase" -> {"Tezos", "Testnet"},
"Type" -> "Origination",
"Sender" -> "tz1YeQkgxvzVroTyMh72DrmNRsyzQfsBmxt8",
"Balance" -> 100,
"Contract" -> <|
"Storage" -> <|"string" -> "hello"|>,
"Code" -> {<|"prim" -> "parameter", "args" -> {<|"prim" -> "string"|>}|>, <|"prim" -> "storage", "args" -> {<|"prim" -> "string"|>}|>, <|"prim" -> "code", "args" -> {{<|"prim" -> "CAR"|>, <|"prim" -> "NIL", "args" -> {<|"prim" -> "operation"|>}|>, <|"prim" -> "PAIR"|>}}|>}
|>,
"StorageLimit" -> 666
|>]"Origination"オペレーションを作成し,指定されたデリゲートに契約の残高を賭ける:
BlockchainTransaction[<|
"BlockchainBase" -> {"Tezos", "Testnet"},
"Type" -> "Origination",
"Sender" -> "tz1YeQkgxvzVroTyMh72DrmNRsyzQfsBmxt8",
"Balance" -> 100,
"Contract" -> <|
"Storage" -> <|"string" -> "hello"|>,
"Code" -> {<|"prim" -> "parameter", "args" -> {<|"prim" -> "string"|>}|>, <|"prim" -> "storage", "args" -> {<|"prim" -> "string"|>}|>, <|"prim" -> "code", "args" -> {{<|"prim" -> "CAR"|>, <|"prim" -> "NIL", "args" -> {<|"prim" -> "operation"|>}|>, <|"prim" -> "PAIR"|>}}|>}
|>,
"Delegate" -> "tz1YeQkgxvzVroTyMh72DrmNRsyzQfsBmxt8"
|>]開示オペレーション (6)
"Reveal"オペレーションを作成して送信者の公開鍵を開示する.指定されていない要素には自動の値が使われる:
BlockchainTransaction[<|
"BlockchainBase" -> {"Tezos", "Testnet"},
"Type" -> "Reveal",
"Sender" -> "tz2VEaCRQvU2QJ3eSk6ysy599PLx7oq4nApw",
"SenderPublicKey" -> PublicKey[Association["Type" -> "EllipticCurve", "CurveName" -> "secp256k1", "Compressed" -> True,
"PublicByteArray" -> ByteArray["AmpxBZi1uGAOoRyIL0IWWgWkxSX7tVrEnkTGc2BKA+zT"],
"PublicCurvePoint" ->
{48144854293927194316059200322827584686294706607638776632242965825936609766611,
64362713064867872111713111058083165432393763416166455603984346396149270438966}]]|>]"Reveal"オペレーションを作成してブランチを指定する:
BlockchainTransaction[<|
"BlockchainBase" -> {"Tezos", "Testnet"},
"Type" -> "Reveal",
"Sender" -> "tz2VEaCRQvU2QJ3eSk6ysy599PLx7oq4nApw",
"SenderPublicKey" -> PublicKey[Association["Type" -> "EllipticCurve", "CurveName" -> "secp256k1", "Compressed" -> True,
"PublicByteArray" -> ByteArray["AmpxBZi1uGAOoRyIL0IWWgWkxSX7tVrEnkTGc2BKA+zT"],
"PublicCurvePoint" ->
{48144854293927194316059200322827584686294706607638776632242965825936609766611,
64362713064867872111713111058083165432393763416166455603984346396149270438966}]],
"Branch" -> "BLD11WaZ1gpfGuPBFCX4BkBgXoorBb9i76YLVrpKYqWdhETVSSv"|>]"Reveal"オペレーションを作成してトランザクション数を指定する:
txCount = BlockchainAddressData["tz2VEaCRQvU2QJ3eSk6ysy599PLx7oq4nApw", "TransactionCount", BlockchainBase -> {"Tezos", "Testnet"}]BlockchainTransaction[<|
"BlockchainBase" -> {"Tezos", "Testnet"},
"Type" -> "Reveal",
"Sender" -> "tz2VEaCRQvU2QJ3eSk6ysy599PLx7oq4nApw",
"SenderPublicKey" -> PublicKey[Association["Type" -> "EllipticCurve", "CurveName" -> "secp256k1", "Compressed" -> True,
"PublicByteArray" -> ByteArray["AmpxBZi1uGAOoRyIL0IWWgWkxSX7tVrEnkTGc2BKA+zT"],
"PublicCurvePoint" ->
{48144854293927194316059200322827584686294706607638776632242965825936609766611,
64362713064867872111713111058083165432393763416166455603984346396149270438966}]],
"TransactionCount" -> txCount + 1|>]"Reveal"オペレーションを作成してベイカー手数料を指定する:
BlockchainTransaction[<|
"BlockchainBase" -> {"Tezos", "Testnet"},
"Type" -> "Reveal",
"Sender" -> "tz2VEaCRQvU2QJ3eSk6ysy599PLx7oq4nApw",
"SenderPublicKey" -> PublicKey[Association["Type" -> "EllipticCurve", "CurveName" -> "secp256k1", "Compressed" -> True,
"PublicByteArray" -> ByteArray["AmpxBZi1uGAOoRyIL0IWWgWkxSX7tVrEnkTGc2BKA+zT"],
"PublicCurvePoint" ->
{48144854293927194316059200322827584686294706607638776632242965825936609766611,
64362713064867872111713111058083165432393763416166455603984346396149270438966}]],
"BakerFee" -> 10000|>]"Reveal"オペレーションを作成してガスの上限を指定する:
BlockchainTransaction[<|
"BlockchainBase" -> {"Tezos", "Testnet"},
"Type" -> "Reveal",
"Sender" -> "tz2VEaCRQvU2QJ3eSk6ysy599PLx7oq4nApw",
"SenderPublicKey" -> PublicKey[Association["Type" -> "EllipticCurve", "CurveName" -> "secp256k1", "Compressed" -> True,
"PublicByteArray" -> ByteArray["AmpxBZi1uGAOoRyIL0IWWgWkxSX7tVrEnkTGc2BKA+zT"],
"PublicCurvePoint" ->
{48144854293927194316059200322827584686294706607638776632242965825936609766611,
64362713064867872111713111058083165432393763416166455603984346396149270438966}]],
"GasLimit" -> 666666|>]"Reveal"オペレーションを作成してストレージの上限を指定する:
BlockchainTransaction[<|
"BlockchainBase" -> {"Tezos", "Testnet"},
"Type" -> "Reveal",
"Sender" -> "tz2VEaCRQvU2QJ3eSk6ysy599PLx7oq4nApw",
"SenderPublicKey" -> PublicKey[Association["Type" -> "EllipticCurve", "CurveName" -> "secp256k1", "Compressed" -> True,
"PublicByteArray" -> ByteArray["AmpxBZi1uGAOoRyIL0IWWgWkxSX7tVrEnkTGc2BKA+zT"],
"PublicCurvePoint" ->
{48144854293927194316059200322827584686294706607638776632242965825936609766611,
64362713064867872111713111058083165432393763416166455603984346396149270438966}]],
"StorageLimit" -> 666|>]オプション (2)
BlockchainBase (2)
Mainnet (1)
アプリケーション (1)
テゾスBlockchainTransactionを作成する:
tezosTX = BlockchainTransaction[<|
"BlockchainBase" -> {"Tezos", "Testnet"},
"Type" -> "Transaction",
"Sender" -> "tz1QQq7Zf1vqFtVwQUotAAnduqFJJVJXQj8B",
"Target" -> "tz1YeQkgxvzVroTyMh72DrmNRsyzQfsBmxt8",
"Amount" -> 1|>]秘密鍵オブジェクトを使ってトランザクションオブジェクトに署名する:
tezosTXSigned = BlockchainTransactionSign[tezosTX, PrivateKey[Association["Type" -> "EdwardsCurve", "CurveName" -> "ed25519",
"PrivateByteArray" -> ByteArray["t6mN4yZraSgHhBNriYkfLSUZXBknkn5jwxSTGVaE+ZA="],
"PublicByteArray" -> ByteArray["XV8X/6Px3jp6g7P7fjP9Kx3kkRqRo+Qjs0NetwesZ3A="],
"PublicCurvePoint" ->
{45001969305677632895706978426590845419496377012816879793671527316425824597738,
50842211597400211252558589180780840303852599974743311386585975784578039111517}]]]署名済みのオペレーションをテゾスブロックチェーンに送信する:
BlockchainTransactionSubmit[tezosTXSigned]関連するガイド
履歴
2020 で導入 (12.2)
テキスト
Wolfram Research (2020), BlockchainTransaction, Wolfram言語関数, https://reference.wolfram.com/language/ref/blockchain/BlockchainTransaction-Tezos.html.
CMS
Wolfram Language. 2020. "BlockchainTransaction." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/blockchain/BlockchainTransaction-Tezos.html.
APA
Wolfram Language. (2020). BlockchainTransaction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/blockchain/BlockchainTransaction-Tezos.html
BibTeX
@misc{reference.wolfram_2026_blockchaintransaction, author="Wolfram Research", title="{BlockchainTransaction}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/blockchain/BlockchainTransaction-Tezos.html}", note=[Accessed: 08-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_blockchaintransaction, organization={Wolfram Research}, title={BlockchainTransaction}, year={2020}, url={https://reference.wolfram.com/language/ref/blockchain/BlockchainTransaction-Tezos.html}, note=[Accessed: 08-September-2026]}