Skip to content

Commit 043f89c

Browse files
committed
chore: initial commit
0 parents  commit 043f89c

6 files changed

Lines changed: 608 additions & 0 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
.DS_Store
3+
dist

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Etherproxy
2+
3+
## Usage
4+
5+
To launch a JSON-RPC reverse proxy on port 9000 and forward all requests to GetBlock using your token and mainnet, run:
6+
7+
```
8+
npx etherproxy 9000 https://gno.getblock.io/YOUR_TOKEN/mainnet/
9+
```
10+
11+
Make sure to replace `YOUR_TOKEN` with your actual token.
12+
13+
## Benefits
14+
15+
The JSON-RPC reverse proxy provides several benefits, particularly in multi-node scenarios. For instance, requests such as `eth_blockNumber` and `eth_getLogs` are frequently called, and in such scenarios, it's easy to quickly exhaust your request quota.
16+
17+
However, by using the reverse proxy, the same requests made within 2 seconds are grouped together and sent to your third-party service only once. As a result, all local nodes receive the same response, which can significantly reduce the number of requests made and help preserve your quota.

0 commit comments

Comments
 (0)