Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Commit 797a99b

Browse files
committed
we are signing binary payload/stateInit: change the name to reflect that
1 parent 586048b commit 797a99b

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
* [Payment](#payment)
1111
* [Donation](#donation)
1212
* [Deploy](#deploy)
13+
* [SignRawPayload](#SignRawPayload)
1314
* [NFTs](#nfts)
1415
* [Deploy NFT collection](#deploy-nft-collection)
1516
* [Deploy NFT item](#deploy-nft-item)
@@ -225,7 +226,7 @@ Transaction request must be discarded if the local time is greater than the `exp
225226
"type": "transfer" |
226227
"donation" |
227228
"deploy" |
228-
"sign-boc" |
229+
"sign-raw-payload" |
229230
"nft-collection-deploy" |
230231
"nft-item-deploy" |
231232
"nft-single-deploy" |
@@ -298,7 +299,7 @@ Parameters:
298299

299300
* `address` (string)
300301
* `stateInitHex` (string): hex-encoded collection contract code BoC with one cell encapsulating entire StateInit
301-
* `amount` (decimal string): nanotoncoins
302+
* `amount` (decimal string): nanotoncoins.
302303
* `text` (string, optional): text message that must be attached to the deploy operation
303304

304305
Opens a compact confirmation dialog with all data filled-in.
@@ -314,15 +315,16 @@ const valid = (address.hashPart == hash);
314315
```
315316

316317

317-
### SignBoc
318+
### SignRawPayload
318319

319-
[Transaction request](#transaction-request) object with type `sign-boc`.
320+
[Transaction request](#transaction-request) object with type `sign-raw-payload`.
320321

321322
Parameters:
322323

323324
* `address` (string, optional): destination address.
324325
* `amount` (decimal string): number of nanocoins to send.
325-
* `payload` (string base64): raw BoC encoded in Base64.
326+
* `payload` (string base64): raw one-cell BoC encoded in Base64.
327+
* `stateInit` (string base64): raw once-cell BoC encoded in Base64.
326328

327329
Wallet simulates the execution of the message and present to the user summary of operations: "jetton XYZ will be transferred, N toncoins will be sent" etc.
328330

@@ -333,6 +335,7 @@ await wallet.methods.transfer({
333335
amount: <amount>,
334336
seqno: seqno,
335337
payload: <payload>,
338+
stateInit: <stateInit>,
336339
sendMode: 3,
337340
}).send()
338341
```

0 commit comments

Comments
 (0)