1.0.4 • Published 1 month ago

@puckapao/near-rpc-tester v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
1 month ago

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

1.0.4

1 month ago