Skip to content

Instantly share code, notes, and snippets.

@aramalipoor
Last active January 30, 2025 13:13
Show Gist options
  • Save aramalipoor/f5c71144047bc7126c8028eadffacd6d to your computer and use it in GitHub Desktop.
Save aramalipoor/f5c71144047bc7126c8028eadffacd6d to your computer and use it in GitHub Desktop.
eRPC simple config example with public endpoints
# See the full docs: https://docs.erpc.cloud
# Endpoints from: https://chainlist.org/chain/1
logLevel: debug
projects:
- id: main
networkDefaults:
failsafe:
timeout:
duration: "30s"
hedge:
quantile: 0.99
maxCount: 2
retry:
maxAttempts: 3
delay: "100ms"
jitter: "0ms"
backoffMaxDelay: "1s"
backoffFactor: 1.5
upstreamDefaults:
failsafe:
timeout:
duration: "15s"
retry:
maxAttempts: 3
delay: "300ms"
jitter: "100ms"
backoffMaxDelay: "5s"
backoffFactor: 1.5
circuitBreaker:
failureThresholdCount: 160
failureThresholdCapacity: 200
halfOpenAfter: "5m"
successThresholdCount: 3
successThresholdCapacity: 3
upstreams:
- endpoint: https://eth.llamarpc.com
- endpoint: https://rpc.ankr.com/eth
- endpoint: https://ethereum-rpc.publicnode.com
- endpoint: https://eth-mainnet.public.blastapi.io
- endpoint: https://mainnet.gateway.tenderly.co
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment