Skip to content

CallistoNetwork/eth-json-rpc-0xinfra

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eth-json-rpc-0xinfra

json-rpc-engine middleware for 0xinfra's REST endpoints.

usage as provider

const create0xinfraProvider = require('eth-json-rpc-0xinfra/src/createProvider')
const Ethjs = require('ethjs')

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

usage as middleware

const create0xinfraMiddleware = require('eth-json-rpc-0xinfra')
const RpcEngine = require('json-rpc-engine')

const engine = new RpcEngine()
engine.push(create0xinfraMiddleware({ network: 'ropsten' }))

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%