Skip to content

Commit

Permalink
Merge pull request #7 from ghimire007/patch-7
Browse files Browse the repository at this point in the history
Update serialization-interface.md
  • Loading branch information
ghimire007 authored Sep 4, 2023
2 parents 1970a04 + acb1490 commit c97358f
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions docs/sdk/rust/contract-interface/serialization-interface.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
sidebar_position: 5
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

# Serialization Protocols

Expand Down Expand Up @@ -57,7 +59,26 @@ https://github.com/mikedotexe/rust-status-message/blob/b83c5126fdbe0f19bc904e547

To call this with NEAR CLI, use a command similar to this:

near call rust-status-message.demo.testnet set_status_borsh --base64 'DAAAAEFsb2hhIGhvbnVhIQ==' --accountId demo.testnet
<Tabs className="language-tabs" groupId="code-tabs">
<TabItem value="Near-CLI">

```bash
near call rust-status-message.demo.testnet set_status_borsh --base64 'DAAAAEFsb2hhIGhvbnVhIQ==' --accountId demo.testnet
```




</TabItem>
<TabItem value="Near-CLI-rs">

```bash
near contract call-function as-transaction rust-status-message.demo.testnet set_status_borsh base64-args 'DAAAAEFsb2hhIGhvbnVhIQ==' prepaid-gas '30 TeraGas' attached-deposit '0 NEAR' sign-as demo.testnet network-config testnet sign-with-keychain send
```

</TabItem>
</Tabs>


See more details in [this GitHub gist](https://gist.github.com/mfornet/d8a94af333a68d67affd8cb78464c7c0) from [Marcelo](https://gist.github.com/mfornet).

Expand Down Expand Up @@ -150,4 +171,4 @@ impl Contract {
self.data.into()
}
}
```
```

0 comments on commit c97358f

Please sign in to comment.