Skip to content

Sidecar for DRPC proxy, that makes DRPC look like simple JSON RPC provider

Notifications You must be signed in to change notification settings

drpcorg/drpc-sidecar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DRPC sidecar

Sidecar for DRPC proxy, that makes DRPC look like simple JSON RPC provider

Requests

DRPC sidecar looks and works like any other JSON RPC provider. Its responsibility to provide compatibility with software that doesn't support DRPC natively, however want to use all the good stuff.

Request config should be passed as query params. Configurable settings are described in DRPC SDK documentation

Example

POST http://0.0.0.0:3000/?provider_ids[]=test&dkey=dkey HTTP/1.1
content-type: application/json

[{
  "method": "eth_blockNumber",
  "params": [],
  "id": "100",
  "jsonrpc":"2.0"
},{
  "method": "eth_blockNumber",
  "params": [],
  "id": "101",
  "jsonrpc":"2.0"
}]

Prerequisites

Node 16+ and npm

You should install node modules npm i

Run app

To start with docker make docker-run

Server config

Config enabled through env vars:

DRPC_SIDECAR_HOST — server host, default: localhost

DRPC_SIDECAR_PORT — server port, default: 8999

DRPC_SIDECAR_URL — url to DRPC-proxy, default is https://main.drpc.org

About

Sidecar for DRPC proxy, that makes DRPC look like simple JSON RPC provider

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published