Skip to content

Commit

Permalink
we are signing binary payload/stateInit: change the name to reflect that
Browse files Browse the repository at this point in the history
  • Loading branch information
oleganza committed Jul 13, 2022
1 parent 586048b commit 797a99b
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
* [Payment](#payment)
* [Donation](#donation)
* [Deploy](#deploy)
* [SignRawPayload](#SignRawPayload)
* [NFTs](#nfts)
* [Deploy NFT collection](#deploy-nft-collection)
* [Deploy NFT item](#deploy-nft-item)
Expand Down Expand Up @@ -225,7 +226,7 @@ Transaction request must be discarded if the local time is greater than the `exp
"type": "transfer" |
"donation" |
"deploy" |
"sign-boc" |
"sign-raw-payload" |
"nft-collection-deploy" |
"nft-item-deploy" |
"nft-single-deploy" |
Expand Down Expand Up @@ -298,7 +299,7 @@ Parameters:

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

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


### SignBoc
### SignRawPayload

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

Parameters:

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

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.

Expand All @@ -333,6 +335,7 @@ await wallet.methods.transfer({
amount: <amount>,
seqno: seqno,
payload: <payload>,
stateInit: <stateInit>,
sendMode: 3,
}).send()
```
Expand Down

3 comments on commit 797a99b

@hossen71
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hossen71
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good

@hossen71
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UQA5NWl5eH6KvxwnMBCj7vDbb-Xebok-pWGfFuHhq1zMxmv5

Please sign in to comment.