@puckapao/near-rpc-tester

1.0.4 • Public • Published

NEAR RPC TESTER

This is experimental script to explore NEAR's RPC APIs and interacti with it. Please use with caution.

[!CAUTION] This is only for testnet, not recommend for mainnet use. And it requires private key of sender wallet, so please use burner wallets.


INSTALLATION

  1. Install Node.js and Git

  2. Clone the repository

git clone https://github.com/Puckapao/near-rpc-tester.git && cd near-rpc-tester
  1. Install dependencies (Requires Node and Npm)
npm install
  1. Modify configs
cp .env.sample .env
  1. Run the script
node near.js

CONFIGS

ID = "Sender wallet's ID" ie. "sender.wallet"

PRIVATE_KEY = "Sender wallet's private key"

RPC = "RPC URL"

RECEIVER = "Receiver wallet's ID" ie. "reciever.testnet"

MAX_AMOUNT = "Max token to send each time" ie. 1000000000000000000000 = 0.0001

MIN_INTERVAL = Minimum of interval time (seconds), Will be used in random interval time​

MAX_INTERVAL = Maximum of interval time (seconds), Will be used in random interval time

[!CAUTION] Too short interval might cause failure response from wallet RPC. Suggestion: minimum 60 seconds

Readme

Keywords

Package Sidebar

Install

npm i @puckapao/near-rpc-tester

Weekly Downloads

0

Version

1.0.4

License

ISC

Unpacked Size

7.93 kB

Total Files

6

Last publish

Collaborators

  • puckapao