Skip to content

sadliak/nearvember-2021

Repository files navigation

NEARvember 2021

https://nearvember.near.org/

Prerequisites

  • 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 install wasm32-unknown-unknown target
      $ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh rustup target add wasm32-unknown-unknown

NEAR commands

  • 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>