Skip to content

Commit

Permalink
Add repl and generate-key to README
Browse files Browse the repository at this point in the history
  • Loading branch information
vgrichina committed Nov 15, 2019
1 parent 581c42a commit 1c139dd
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ near <command>

### Commands

For account:
#### For account:
```bash
near login # logging in through NEAR protocol wallet
near create_account <accountId> # create a developer account with --masterAccount(required), publicKey and initialBalance
Expand All @@ -32,7 +32,7 @@ For account:
near delete <accountId> <beneficiaryId> # delete an account and transfer funds to beneficiary account
```

For smart contract:
#### For smart contract:
```bash
near build # build your smart contract
near deploy # deploy your smart contract
Expand All @@ -43,11 +43,18 @@ For smart contract:
near clean # clean the smart contract build locally(remove ./out )
```

For transactions:
#### For transactions:
```bash
near tx-status <hash> # lookup transaction status by hash
```

#### Misc:

```bash
near repl # launch interactive Node.js shell with NEAR connection available to use
near generate-key <account-id> # generate key
```

### Options

| Option | Description | Type | Default |
Expand All @@ -62,4 +69,4 @@ For transactions:
| --accountId, --account_id | Unique identifier for the account | [string] [required]| |
| --masterAccount | Account used to create requested account. | [string] [required]| |
| --publicKey | Public key to initialize the account with | [string] [required]| |
| --initialBalance | Number of tokens to transfer to newly account | [string] [required]| |
| --initialBalance | Number of tokens to transfer to newly account | [string] [required]| |

0 comments on commit 1c139dd

Please sign in to comment.