Skip to content

Latest commit

 

History

History
47 lines (33 loc) · 2.8 KB

README.md

File metadata and controls

47 lines (33 loc) · 2.8 KB

NEAR-API-JS Cookbook

Collection of common use cases for near-api-js.


Overview

Name Description
ACCOUNTS
Create Account Create NEAR accounts without using NEAR Wallet.
Access Key Rotation Create and delete access keys for added security.
TRANSACTIONS
Get Transaction Status Gets transaction status using a tx hash and associated account/contract ID.
Recent Transaction Details Get recent transaction details without using an indexing service.
Batch Transactions Sign and send multiple transactions.
UTILS
Deploy Contract Deploys a contract using a pre-compiled .wasm file
Calculate Gas Calculate gas burnt from any contract call.
Read State w/o Account Read state of a contract without instantiating an account.

Requirements


Setup

  1. Install dependencies
npm install
  1. Run Commands

Example:

node utils/get-state