-
node.js - 14.x.x+
- Follow instructions to install nvm
- Run
nvm
commands$ nvm install lts/fermium $ nvm use lts/fermium
- Install
yarn
$ npm install -g yarn
-
rust - 1.56.x+
- Install
rustup
toolchain and installwasm32-unknown-unknown
target$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh rustup target add wasm32-unknown-unknown
- Install
-
Authorise NEAR CLI to use your NEAR Wallet account
$ near login
-
Create NEAR sub-account
$ near create-account chN.near-to-the-moon.testnet --masterAccount near-to-the-moon.testnet --initialBalance 5
-
Delete NEAR sub-account
$ near delete chN.near-to-the-moon.testnet near-to-the-moon.testnet
-
Deploy NEAR smart contract
$ near deploy --accountId chN.near-to-the-moon.testnet --wasmFile <wasm-file>
-
Call NEAR smart contract
$ near call --accountId chN.near-to-the-moon.testnet <contract> <method> <method-args>