Skip to content

Commit

Permalink
wip on sign-boc
Browse files Browse the repository at this point in the history
  • Loading branch information
oleganza committed Jul 6, 2022
1 parent 9007a75 commit 586048b
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ Transaction request must be discarded if the local time is greater than the `exp
"type": "transfer" |
"donation" |
"deploy" |
"sign-boc" |
"nft-collection-deploy" |
"nft-item-deploy" |
"nft-single-deploy" |
Expand All @@ -240,6 +241,7 @@ Transaction request must be discarded if the local time is greater than the `exp
"params": TransferParams |
DonationParams |
DeployParams |
SignBoc |
NftCollectionDeployParams |
NftItemDeployParams |
NftSingleDeployParams |
Expand Down Expand Up @@ -312,6 +314,31 @@ const valid = (address.hashPart == hash);
```


### SignBoc

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

Parameters:

* `address` (string, optional): destination address.
* `amount` (decimal string): number of nanocoins to send.
* `payload` (string base64): raw 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.

```
await wallet.methods.transfer({
secretKey: ...
toAddress: <address>,
amount: <amount>,
seqno: seqno,
payload: <payload>,
sendMode: 3,
}).send()
```



## NFTs

### Deploy NFT collection
Expand Down

2 comments on commit 586048b

@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.

hi

Please sign in to comment.