A Sample code to call JSON RPC on Inery Blockchain
- node js
- npm
-
Clone the repo
git clone -b task4 https://github.com/aristanurkila/inery-testnet-faucet-tasks
-
Change directory to our rpc solution ~/domainan
cd ~/inery-testnet-faucet-tasks/domainan
-
Install NPM packages
npm install
-
Create
.env
filetouch .env
-
Edit
.env
file with your information
- INERY_ACCOUNT="your_inery_account"
- PRIVATE_KEY="your_private_key"
- NODE_URL="http://your_IP_VPS:8888"
Run RPC domainan
npm run domainan-rpc
or
node ./domainan-rpc/json-rpc.mjs