Skip to content

checkgpu/near-shell

 
 

Repository files navigation

NEAR command line interface

Build Status

The NEAR protocol library as CLI tool. More documentation here

Installation

npm install -g near-shell

Usage

In command line, from directory with your project:

near <command>

Commands

  near create_account <accountId>              # create a developer account
  near state <accountId>                       # view account
  near tx-status <hash>                        # lookup transaction status by hash
  near build                                   # build your smart contract
  near deploy                                  # deploy your smart contract
  near call <contractName> <methodName>        # schedule smart contract call which
  [args]                                       # can modify state
  near view <contractName> <methodName>        # make smart contract call which can
  [args]                                       # view state
  near state <accountId>                       # view account
  near send <sender> <receiver> <amount>       # send tokens to given receiver
  near clean                                   # clean the build environment
  near new_project [projectDir]                # create a new blank project
  near stake [accountId] [publicKey] [amount]  # create staking transaction
  near login                                   # create a developer account

Options

Option Description Type Default
--help Show help [boolean]
--version Show version number [boolean]
--nodeUrl, --node_url NEAR node URL [string] "http://localhost:3030"
--networkId, --network_id NEAR network ID for different keys by network [string] "default"
--helperUrl NEAR contract helper URL [string]
--keyPath Path to master account key [string]
--homeDir Where to look for master account [string] "~/.near"
--accountId, --account_id Unique identifier for the account [string]

About

General purpose command line tools for interacting with NEAR Protocol

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • JavaScript 83.3%
  • Shell 7.1%
  • HTML 5.8%
  • TypeScript 3.8%