@puckapao/near-rpc-tester
v1.0.4
Published
Testing RPC on NEAR Protocol
Downloads
3
Readme
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
git clone https://github.com/Puckapao/near-rpc-tester.git && cd near-rpc-tester
- Install dependencies (Requires Node and Npm)
npm install
- Modify configs
cp .env.sample .env
- 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