Learn-NEAR / near-account-utils

Small command line demo using near-api-js and JSON RPC API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NEAR Utilities

A collection of utilities to help with NEAR account management, development and troubleshooting

Setup

  • Clone this repo
  • Run yarn

Collecting Keys

Find all TestNet accounts and copy them to ~/.near-credentials

This is for Linux and macOS systems only

  • Run yarn collect-keys

Accounts Report

Generate a report of accounts available on the NEAR network by scanning ~/.near-credentials for all files ending in .json

  • Run yarn accounts

Expected Output

Accounts Report

Account Keys Report

Generate a report of account keys on the NEAR network by scanning ~/.near-credentials for all files ending in .json

  • Run yarn keys

Expected Output

Testnet

Accounts Report Testnet

Localnet

Accounts Report Localnet

Storage Report

Generate a report of decoded state stored on an account

  • Run yarn storage <account>

Expected Output

Storage Report

Alternate Expected Output

Storage Report with no output

About

Small command line demo using near-api-js and JSON RPC API

License:MIT License


Languages

Language:JavaScript 100.0%