Skip to content

Commit

Permalink
chore: update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
esaminu committed Mar 30, 2022
1 parent a000bb7 commit e209817
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions packages/utilities/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ The uitilites package provides various wallet related command line utilities.

_Click on a command for more information and examples._

| Command | Description |
| ----------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| [`disable-2fa`](#disable-2fa) | disable 2fa using the provided seedphrase |
| Command | Description |
| ------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------- |
| [`disable-2fa`](#disable-2fa) | disable 2fa using the provided seedphrase |
| [`restore-account-contract`](#restore-account-contract)| restore account contract to a given `blockHash` |


## Disable 2fa
Expand All @@ -21,4 +22,15 @@ This script allows the user to disable NEAR Wallet 2fa using the provided seedph

```shell=
NEAR_WALLET_ENV=mainnet node index.js disable-2fa --accountId="testAccount.near" --seedPhrase='lorem ipsum dolor sit amet consectetur adipiscing elit nunc efficitur est'
```
---
## Restore account contract

This script restores account code back to a given `blockHash` by deploying a contract. It pulls contract code from the given archival node
* arguments: `accountId` `seedPhrase` `nodeUrl` `blockHash`

### Usage

```shell=
NEAR_WALLET_ENV=testnet node index.js restore-account-contract --accountId='testAccount.testnet' --seedPhrase='lorem ipsum dolor sit amet consectetur adipiscing elit nunc efficitur est' --blockHash='9c5tk9kdTzgAgejgmnLCRu9yJ1Jp1LjFqtgB4SHEzzeB' --nodeUrl='https://sample-archival-testnet-node-url.com/'
```

0 comments on commit e209817

Please sign in to comment.