-
Notifications
You must be signed in to change notification settings - Fork 88
Expand file tree
/
Copy patherpc.yaml.dist
More file actions
81 lines (76 loc) · 1.77 KB
/
Copy patherpc.yaml.dist
File metadata and controls
81 lines (76 loc) · 1.77 KB
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
logLevel: warn
server:
httpHostV4: "0.0.0.0"
httpPortV4: 4000
metrics:
enabled: true
hostV4: "0.0.0.0"
port: 4001
database:
evmJsonRpcCache:
connectors:
- id: memory-cache
driver: memory
memory:
maxItems: 10000
# - id: postgres-cache
# driver: postgresql
# postgresql:
# connectionUri: >-
# postgres://YOUR_USERNAME_HERE:YOUR_PASSWORD_HERE@your.postgres.hostname.here.com:5432/your_database_name
# table: rpc_cache
policies:
- network: "*"
method: "*"
finality: finalized
connector: memory-cache
ttl: 0
- network: "*"
method: "*"
finality: unfinalized
connector: memory-cache
ttl: 5s
projects:
- id: main
rateLimitBudget: global
networks:
- architecture: evm
evm:
chainId: 80069
failsafe:
- matchMethod: "*"
timeout:
duration: 8s
retry:
maxAttempts: 5
delay: 500ms
backoffMaxDelay: 10s
backoffFactor: 0.3
jitter: 200ms
hedge:
delay: 3000ms
maxCount: 2
upstreams:
- id: bepolia-official
type: evm
endpoint: https://bepolia.rpc.berachain.com
rateLimitBudget: global
evm:
chainId: 80069
failsafe:
- matchMethod: "*"
timeout:
duration: 5s
retry:
maxAttempts: 2
delay: 500ms
backoffMaxDelay: 10s
backoffFactor: 0.3
jitter: 100ms
rateLimiters:
budgets:
- id: global
rules:
- method: "*"
maxCount: 1000
period: 1s