https://github.com/sandoche/near-javascript-enclave-quickstart
Following this tutorial: https://docs.near.org/develop/enclave
https://github.com/sandoche/near-javascript-enclave-quickstart
Last synced: 7 months ago
JSON representation
Following this tutorial: https://docs.near.org/develop/enclave
- Host: GitHub
- URL: https://github.com/sandoche/near-javascript-enclave-quickstart
- Owner: sandoche
- Created: 2022-07-25T10:22:10.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-25T12:37:26.000Z (about 3 years ago)
- Last Synced: 2025-01-11T20:41:57.285Z (9 months ago)
- Language: JavaScript
- Size: 27.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NEAR Javascript Enclave
- Playing with the NEAR JS SDK followin this tutorial: https://docs.near.org/develop/enclave
## Build and deploy
```sh
# build
npm run build# deploy
npm run deploy
```## Interacting with the smart contract
```sh
# interacting
export JS_CONTRACT="..."# initialize
near js call $JS_CONTRACT init --accountId $JS_CONTRACT --deposit 0.1# get greetings
near js view $JS_CONTRACT get_greeting# set greetings
near js call $JS_CONTRACT set_greeting '["GO TEAM!"]' --accountId $JS_CONTRACT --deposit 0.1
```