-
Notifications
You must be signed in to change notification settings - Fork 2
/
default.yaml
96 lines (87 loc) Β· 2.79 KB
/
default.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# default.yaml is the default configuration file
# For local development, you can create a local.yaml to override the default configuration
# Service configuration
app:
# Service name
name: "Web3 RPC Proxy"
# Host and port where the service listens
host: :8080
# Expiration time for keep-alive connections
idle-timeout: 30s
# Print registered routes
print-routes: false
# Whether to enable prefork
prefork: false
# Enable production mode
production: false
# Logger configuration
logger:
level: info
# Database configuration
# database:
# postgres:
# dsn: 'postgres://your-postgres-host:5432/your_db_name'
# Redis configuration for data caching
# redis:
# url: 'redis://your-redis-host:6379'
# AMQP configuration, after startup, the service will automatically create an exchange
# based on the following configuration and send request information to this exchange
# amqp:
# url: amqp://your-mq-host:5672
# exchange: "your-exchange-name" # default: "web3rpcproxy.query.topic"
# exchange-type: "topic"
# Tenant configuration
# tenant:
# enable: true # Enable tenants rate limit
# Data caching
cache:
results:
expiry_durations:
net_version: 24h
eth_chainId: 24h
eth_getTransactionCount: 5m
eth_getBlockTransactionCountByNumber: 5m
eth_getBlockTransactionCountByHash: 5m
eth_getUncleCountByBlockHash: 5m
eth_getUncleCountByBlockNumber: 5m
eth_blockNumber: 0.1s
eth_getBlockByNumber: 10m
eth_getBlockByHash: 10m
eth_getTransactionByHash: 10m
eth_getTransactionByBlockHashAndIndex: 10m
eth_getTransactionByBlockNumberAndIndex: 10m
eth_getTransactionReceipt: 10m
eth_getLogs: 10m
eth_getUncleByBlockHashAndIndex: 10m
eth_getUncleByBlockNumberAndIndex: 10m
# Provider configuration, it will auto load external endpoints
# providers:
# web3-rpc-provider:
# url: "http://your_host:3000/endpoints"
# sources:
# - ChainList
# Endpoint configuration, provides endpoint lists for each chain for the system to choose from
endpoints:
# Chain ID
- id: 1
# Chain code
code: eth
# Different types of endpoints
services:
fullnode:
list:
- url: "https://eth-mainnet.g.alchemy.com/v2/xxxx-xxxx-xxxx-xxxx"
activenode:
list:
- url: "https://api.mycryptoapi.com/eth"
- url: "https://rpc.flashbots.net/"
- url: "https://ethereumnodelight.app.runonflux.io"
- url: "https://nodes.mewapi.io/rpc/eth"
- id: 11155111
code: sepolia
# Provide a list of available endpoints for Sepolia, choose the best one from the provided list
list:
- url: "https://rpc.sepolia.org"
- url: "https://rpc2.sepolia.org"
- url: "https://rpc-sepolia.rockx.com"
- url: "https://rpc.sepolia.ethpandaops.io"