Skip to content

xiawu/newchain-json-rpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

newchain-json-rpc

json-rpc-engine middleware for newchain's REST endpoints.

usage as provider

const createInfuraProvider = require('newchain-json-rpc/src/createProvider')
const Ethjs = require('ethjs')

const provider = createInfuraProvider({ network: 'mainnet' })
const eth = new Ethjs(provider)

usage as middleware

const createInfuraMiddleware = require('newchain-json-rpc')
const RpcEngine = require('json-rpc-engine')

const engine = new RpcEngine()
engine.push(createInfuraMiddleware({ network: 'testnet' }))

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published