pos-eth-lightclients

0.1.6 • Public • Published

PoS Ethereum LightClients

Implements different light client implementations for PoS Ethereum.

Start the RPC Proxy

npm install -g pos-eth-lightclients
rpc-proxy

The PRC is now available at http://localhost:8546. Add this local network to metamask.

rpc-proxy --help
Options:
      --help        Show help                                          [boolean]
      --version     Show version number                                [boolean]
  -n, --network     chain id to start the proxy on (1, 5)        [choices: 1, 5]
  -c, --client      type of the client          [choices: "light", "optimistic"]
  -o, --provers     comma separated prover urls
  -u, --rpc         rpc url to proxy
  -p, --port        port to start the proxy                             [number]
  -a, --beacon-api  beacon chain api URL

Build Locally

Clone the repo and perform the following commands

yarn install
yarn build

Run Server

cp .env.example .env
yarn start

Deploy Server to heroku

bash src/provers/light-optimistic/deploy-heroku.sh <heroku-app-name>

Package Sidebar

Install

npm i pos-eth-lightclients

Weekly Downloads

0

Version

0.1.6

License

MIT

Unpacked Size

377 kB

Total Files

98

Last publish

Collaborators

  • shresthagrawal