Skip to content

Commit f9d2857

Browse files
committed
fix: docs
1 parent 6e4d00d commit f9d2857

File tree

1 file changed

+14
-17
lines changed
  • docs/tools/rpc-proxy-caching

1 file changed

+14
-17
lines changed

docs/tools/rpc-proxy-caching/erpc.md

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,19 @@
1010

1111
<br />
1212

13-
# Features
14-
15-
**Fault-tolerant Proxy**: Retries, circuit-breakers, failovers and hedged requests make sure fastest most-reliable upstream is used. <br/><br/>
16-
**Flexible Rate-limiters**: Define hourly, daily rate limits for each upstream provider, to control usage, costs and high-scale usage.<br/><br/>
17-
**Permanent Caching**: Avoid redundant upstream costs by locally caching RPC responses, with reorg-aware caching layer.<br/><br/>
18-
**Request Auto-routing**: You don't need to think about which upstream supports which eth\_\* method; eRPC automatically does that.<br/><br/>
19-
**Normalized Errors**: Receive consistent error codes with details across 5+ third-party providers. With useful reporting of occurred errors.<br/><br/>
20-
**RPC Metrics & Observability**: Single dashboard to observe rps throughput, errors, and avg. latency of all your RPC providers.<br/><br/>
21-
22-
# Quick start
23-
24-
1. Create your [`erpc.yaml`](https://docs.erpc.cloud/config/example) configuration file based on the [`erpc.yaml.dist`](https://github.com/erpc/erpc/blob/main/erpc.yaml.dist) file:
25-
26-
```bash
27-
cp erpc.yaml.dist erpc.yaml
28-
code erpc.yaml
13+
# Quickstart
14+
15+
1. Create your [`erpc.yaml`](https://docs.erpc.cloud/config/example) configuration file:
16+
17+
```yaml filename="erpc.yaml"
18+
logLevel: debug
19+
projects:
20+
- id: main
21+
upstreams:
22+
# You don't need to define architecture (e.g. evm) or chain id (e.g. 137)
23+
# as they will be detected automatically by eRPC.
24+
- endpoint: https://polygon-mainnet.blastapi.io/xxxx
25+
- endpoint: evm+alchemy://xxxx-my-alchemy-api-key-xxxx
2926
```
3027
3128
See [a complete config example](https://docs.erpc.cloud/config/example) for inspiration.
@@ -44,7 +41,7 @@ curl --location 'http://localhost:4000/main/evm/137' \
4441
--data '{
4542
"method": "eth_getBlockByNumber",
4643
"params": [
47-
"0x3948796",
44+
"0x397f96e",
4845
false
4946
],
5047
"id": 9199,

0 commit comments

Comments
 (0)