Beerus
Beerus is a Starknet Light Client inspired by and using helios. It is designed to be simple, modular, and fast, supporting the Starknet v0.6.0 OpenRPC spec.
Copy the configuration file from etc/conf/beerus.toml
and set up the RPC provider URLs in the copy. Make sure that providers are compatible. Read more about providers here.
Run the following command to start Beerus:
To verify that Beerus is up and running, try this request:
Field | Example | Description |
---|---|---|
network | MAINNET or SEPOLIA | Network to query |
eth_execution_rpc | https://eth-mainnet.g.alchemy.com/v2/{YOUR_API_KEY} | Untrusted L1 node provider URL |
starknet_rpc | https://starknet-mainnet.g.alchemy.com/starknet/version/rpc/v0.6/{YOUR_API_KEY} | Untrusted L2 node provider URL |
data_dir | tmp | OPTIONAL: Location to store both L1 and L2 data |
poll_secs | 5 | OPTIONAL: Seconds to wait for querying SN state (min: 1, max: 3600) |
rpc_addr | 127.0.0.1:3030 | OPTIONAL: Local address to listen for RPC requests |
fee_token_addr | 0x049d36...e004dc7 | OPTIONAL: Fee token to check for getBalance |
Ensure that eth_execution_rpc
and starknet_rpc
URLs correspond to the selected network (MAINNET or SEPOLIA).
Beerus relies on two untrusted RPC endpoints:
Build the Docker image:
Run the Docker container:
Run examples with: