PR
Comments
New!
藻緯羅さん
New!
USM1さん
GKenさんCategory
Keyword Search
Freepage List
Shopping List
Submitting a transaction is a single method call to the SDK:
トランザクションを提出することは SDK
への一つの方式コールです:
const issueResponse = await contract . submitTransaction ( 'issue' , 'MagnetoCorp' , '00001' , '2020-05-31' , '2020-11-30' , '5000000' );
構築 発行応答= 契約 . トランザクション提出(「発行」、「 MagnetoCorp 」、「 00001 」、「 2020-05-31 」、「 2020-11-30 」、「 5000000 」)を待ち受ける;
See how the
submitTransaction()
parameters match those of the transaction request. It’s these values that will be passed to the
issue()
method in the smart contract, and used to create a new commercial paper. Recall its signature:
トランザクション提出 ()
パラメータがどのようにトランザクション要求のものに匹敵するか見てください。 それはスマート契約で 発行 ()
方式に渡されて、そして新しい商業手形を作るために使われるであろうこれらの値です。 その署名を思い出してください:
async issue ( ctx , issuer , paperNumber , issueDateTime , maturityDateTime , faceValue ) {...}
非同期 発行( ctx 、発行者、 手形番号 、発行日時 、満期日時、 額面価格) { ・・・ }
It might appear that a smart contract receives control shortly after the application issues
submitTransaction()
, but that’s not the case. Under the covers, the SDK uses the
connectionOptions
and
connectionProfile
details to send the transaction proposal to the right peers in the network, where it can get the required endorsements. But the application doesn’t need to worry about any of this – it just issues
submitTransaction
and the SDK takes care of it all!
スマート契約がそのアプリケーションが トランザクション提出 ()
発行のすぐ後に管理を受けるように思われるかもしれませんが、しかしそれはその場合ではありません。 そのカバーの下で、 SDK
は 接続オプションと接続プロファイルの詳細をネットワークで正しい相手にトランザクション提案を送るために使います。そしてそこでそれは必要とされる裏書を受けることができます。 けれどもそのアプリケーションはこれのいずれも心配する必要がありません - ただトランザクション提出を発行し、 SDK
がそのすべてを面倒見ます!
Note that the
submitTransaction
API includes a process for listening for transaction commits. Listening for commits is required because without it, you will not know whether your transaction has successfully been orderered, validated, and committed to the ledger.
トランザクション提出 API
がトランザクションコミットに聞き耳をたてるプロセスを含むことに注意を払ってください。 コミットに聞き耳をたてることは、それなしでは、あなたがあなたのトランザクションが成功裏に発注されて、検証されて、そして元帳に委ねられたかどうか分からないので、必要とされます。
Let’s now turn our attention to how the application handles the response!
今、そのアプリケーションがその応答を取り扱う方法に注意を振り向けましょう!
=========================
インターネット・コンピュータランキング 【5/3〜5】買えば買うほど★最大10%OFFクーポン コールマン アウトドアワゴン グレー アルペン限定カラー 2000034670 OUTDOORWAGON (テント タープ テーブル チェア 運搬に) Coleman
価格:11000円(税込、送料別) (2022/5/2時点)
Apple Gift Card
価格:50000円(税込、送料無料) (2022/5/2時点)
パナソニック ベビーモニター KX-HC705(ホワイト)【送料無料】
価格:15197円(税込、送料無料) (2022/5/2時点)
Nintendo Switch Joy-Con(L) ネオンブルー/(R) ネオンレッド
価格:32978円(税込、送料無料) (2022/5/2時点)
ブロックチェーンインフラから利益を得る1… 2026.11.20
レイヤー1とレイヤー2のブロックチェーン… 2026.10.30
(2)レイヤー1とレイヤー2のブロックチェ… 2026.10.29