You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
final xAddress = addressClass.toXAddress(isTestNetwork: false);
73
+
68
74
/// sign with privateKey
69
75
final sig = private.sign(...)
70
76
@@ -83,7 +89,7 @@ Descriptions for some of these classes are provided below.
83
89
signingPubKey: ownerPublic); // Sender's public key
84
90
85
91
```
86
-
- NTF, mint, createOffer, cancelOffer
92
+
- NTF, mint, createOffer, acceptOffer
87
93
88
94
```
89
95
// mint token
@@ -128,16 +134,20 @@ Descriptions for some of these classes are provided below.
128
134
signingPubKey: ownerPublic,
129
135
memos: [memo],
130
136
);
137
+
131
138
// It receives the transaction, the RPC class, and then fulfills the transaction requirements, including the fee amount, account sequence, and the last network ledger sequence.
132
139
await autoFill(rpc, escrowCreate);
140
+
133
141
// At this point, we need to sign the transaction with the sender's account.
134
142
// We receive the transaction blob and sign it with the sender's private key.
135
143
final sig = owner.sign(escrowCreate.toBlob());
136
144
// After completing the signature, we add it to the transaction.
137
145
escrowCreate.setSignature(sig);
146
+
138
147
/// In the final step, we need to send the transaction to the network.
139
148
/// We receive another transaction blob that already contains a signature. At this point, we no longer need to include a signature, and we must set the 'forSigning' variable to false.
140
149
final trBlob = escrowCreate.toBlob(forSigning: false);
150
+
141
151
// broadcasting transaction
142
152
final result = await rpc.submit(trBlob)
143
153
// transaction hash: result.txJson.hash ()
@@ -179,7 +189,7 @@ Descriptions for some of these classes are provided below.
0 commit comments