pos-eth-lightclients
v0.1.6
Published
LightClient implementations for PoS Ethereum
Downloads
24
Maintainers
Readme
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>