web3-proxy/config/example.toml

102 lines
2.5 KiB
TOML
Raw Normal View History

2022-05-12 21:49:57 +03:00
[shared]
chain_id = 1
2022-08-11 05:56:28 +03:00
db_url = "mysql://root:dev_web3_proxy@dev-db:3306/dev_web3_proxy"
2022-09-03 05:59:30 +03:00
# TODO: how do we find the optimal db_max_connections? too high actually ends up being slower
2022-09-02 23:16:20 +03:00
db_max_connections = 99
2022-08-27 06:11:58 +03:00
min_sum_soft_limit = 2000
2022-08-27 05:13:36 +03:00
min_synced_rpcs = 2
2022-09-03 05:59:30 +03:00
# TODO: how do we find the optimal redis_max_connections? too high actually ends up being slower
persistent_redis_max_connections = 300
persistent_redis_url = "redis://dev-predis:6379/"
volatile_redis_max_connections = 300
volatile_redis_url = "redis://dev-vredis:6379/"
2022-08-12 22:07:14 +03:00
redirect_public_url = "https://llamanodes.com/free-rpc-stats"
2022-09-05 09:29:27 +03:00
redirect_user_url = "https://llamanodes.com/user-rpc-stats/{{user_id}}"
2022-08-06 08:26:43 +03:00
public_rate_limit_per_minute = 0
2022-07-22 22:30:39 +03:00
# 1GB of cache
2022-07-26 03:38:00 +03:00
response_cache_max_bytes = 10000000000
2022-05-12 21:49:57 +03:00
2022-05-13 23:50:11 +03:00
[balanced_rpcs]
2022-05-06 04:40:43 +03:00
2022-06-25 05:24:31 +03:00
[balanced_rpcs.ankr]
url = "https://rpc.ankr.com/eth"
soft_limit = 1_000
2022-08-08 22:57:54 +03:00
weight = 0
2022-05-18 19:35:06 +03:00
2022-06-25 05:24:31 +03:00
[balanced_rpcs.cloudflare]
url = "https://cloudflare-eth.com"
soft_limit = 1_000
2022-08-08 22:57:54 +03:00
weight = 0
2022-05-12 22:58:26 +03:00
2022-06-25 05:24:31 +03:00
[balanced_rpcs.blastapi]
url = "https://eth-mainnet.public.blastapi.io"
soft_limit = 1_000
2022-08-08 22:57:54 +03:00
weight = 0
2022-06-25 05:24:31 +03:00
#[balanced_rpcs.mycryptoapi]
#url = "https://api.mycryptoapi.com/eth"
#soft_limit = 1_000
2022-08-11 05:56:28 +03:00
#weight = 0
2022-06-25 05:24:31 +03:00
[balanced_rpcs.runonflux]
url = "https://ethereumnodelight.app.runonflux.io"
soft_limit = 1_000
2022-08-08 22:57:54 +03:00
weight = 1
2022-06-25 05:24:31 +03:00
[balanced_rpcs.pokt-v1]
url = "https://eth-mainnet.gateway.pokt.network/v1/5f3453978e354ab992c4da79"
2022-08-27 05:13:36 +03:00
soft_limit = 500
2022-08-08 22:57:54 +03:00
weight = 1
2022-06-25 05:24:31 +03:00
[balanced_rpcs.pokt]
url = "https://eth-rpc.gateway.pokt.network"
2022-08-27 05:13:36 +03:00
soft_limit = 500
2022-08-08 22:57:54 +03:00
weight = 1
2022-06-25 05:24:31 +03:00
[balanced_rpcs.linkpool]
url = "https://main-rpc.linkpool.io"
2022-08-27 05:13:36 +03:00
soft_limit = 500
2022-08-08 22:57:54 +03:00
weight = 2
2022-05-12 04:38:27 +03:00
2022-08-27 05:13:36 +03:00
# load balanced light nodes are not very reliable
#[balanced_rpcs.linkpool-light]
#url = "https://main-light.eth.linkpool.io"
#soft_limit = 100
#weight = 3
[private_rpcs]
2022-06-25 05:24:31 +03:00
2022-10-06 23:21:16 +03:00
# these worked well on ETH 1.0, but 2.0 ends up not working as well. we will re-assess as more validators turn on private transactions
[private_rpcs_off.eden]
2022-06-25 05:24:31 +03:00
url = "https://api.edennetwork.io/v1/"
soft_limit = 1_805
2022-08-11 05:56:28 +03:00
weight = 0
2022-06-25 05:24:31 +03:00
2022-10-06 23:21:16 +03:00
[private_rpcs_off.eden_beta]
2022-06-25 05:24:31 +03:00
url = "https://api.edennetwork.io/v1/beta"
soft_limit = 5_861
2022-08-11 05:56:28 +03:00
weight = 0
2022-06-25 05:24:31 +03:00
2022-10-06 23:21:16 +03:00
[private_rpcs_off.ethermine]
2022-06-25 05:24:31 +03:00
url = "https://rpc.ethermine.org"
soft_limit = 5_861
2022-08-11 05:56:28 +03:00
weight = 0
2022-06-25 05:24:31 +03:00
2022-10-06 23:21:16 +03:00
[private_rpcs_off.flashbots]
2022-07-16 07:54:05 +03:00
url = "https://rpc.flashbots.net/fast"
2022-06-25 05:24:31 +03:00
soft_limit = 7074
2022-08-11 05:56:28 +03:00
weight = 0
2022-06-25 05:24:31 +03:00
2022-10-06 23:21:16 +03:00
[private_rpcs_off.securerpc]
2022-06-25 05:24:31 +03:00
url = "https://gibson.securerpc.com/v1"
soft_limit = 4560
2022-08-11 05:56:28 +03:00
weight = 0