SolajaSolaja / akmalaka-rpc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Json RPC Sample for Task 4 Inery Blockchain

A Sample code to call JSON RPC on Inery Blockchain

Prerequisites

  • node js
  • npm

Installation

  1. Clone the repo

    git clone -b task4 https://github.com/bujanasinua/inery-testnet-faucet-tasks
    
  2. Change directory to our rpc solution ~/akmalaka

    cd ~/inery-testnet-faucet-tasks/akmalaka
    
  3. Install NPM packages

    npm install
    
  4. Create .env file

    touch .env
    
  5. Edit .env file with your information

  • INERY_ACCOUNT="your_inery_account"
  • PRIVATE_KEY="your_private_key"
  • NODE_URL="http://your_IP_VPS:8888"

Usage

Run RPC akmalaka

npm run akmalaka-rpc

or

node ./akmalaka-rpc/json-rpc.mjs

About


Languages

Language:JavaScript 100.0%