{"id":19952937,"url":"https://github.com/ethersphere/etherproxy","last_synced_at":"2025-06-21T06:39:19.029Z","repository":{"id":185111160,"uuid":"623473707","full_name":"ethersphere/etherproxy","owner":"ethersphere","description":"Etherproxy is a JSON-RPC reverse proxy tool designed for caching requests.","archived":false,"fork":false,"pushed_at":"2024-07-29T08:30:59.000Z","size":48,"stargazers_count":5,"open_issues_count":13,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-22T20:02:07.408Z","etag":null,"topics":["ethereum"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ethersphere.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-04-04T12:51:14.000Z","updated_at":"2024-06-06T11:48:32.000Z","dependencies_parsed_at":"2023-11-07T14:24:59.602Z","dependency_job_id":"10ddfd34-0107-4051-ae2f-816ce065ce76","html_url":"https://github.com/ethersphere/etherproxy","commit_stats":null,"previous_names":["cafe137/etherproxy","ethersphere/etherproxy"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethersphere%2Fetherproxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethersphere%2Fetherproxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethersphere%2Fetherproxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethersphere%2Fetherproxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ethersphere","download_url":"https://codeload.github.com/ethersphere/etherproxy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233573776,"owners_count":18696400,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ethereum"],"created_at":"2024-11-13T01:14:49.463Z","updated_at":"2025-01-12T06:25:20.910Z","avatar_url":"https://github.com/ethersphere.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Etherproxy\n\nEtherproxy is a robust and lightweight JSON-RPC reverse proxy tool designed for **optimising requests** and **providing failover support**.\n\n## Usage\n\n```\nnpx etherproxy --port 9000 --target https://gno.getblock.io/YOUR_TOKEN/mainnet/ --expiry 2000\n```\n\nThe command above starts the JSON-RPC reverse proxy...\n\n-   on port 9000 (`--port`)\n-   forwarding all requests to GetBlock using your token and mainnet (`--target`)\n-   grouping requests together within 2 seconds (`--expiry`)\n\nMake sure to replace `YOUR_TOKEN` with your actual token.\n\nSupply multiple JSON-RPC `--target` with a comma-separated string:\n\n```\nnpx etherproxy --target https://gno.getblock.io/YOUR_TOKEN/mainnet/,https://rpc.gnosischain.com\n```\n\n## Verify the tool is running\n\nExecute the `curl` command shown below repeatedly and inspect the logs of Etherproxy.\n\n```sh\ncurl http://localhost:9000 -H \"Content-Type: application/json\" -X POST --data '{\"jsonrpc\":\"2.0\",\"method\":\"eth_blockNumber\",\"params\":[],\"id\":1}'\n```\n\nWhen the text `Cache hit` appears, it indicates that a request was saved and immediately returned:\n\n```txt\nKey: {\"jsonrpc\":\"2.0\",\"method\":\"eth_blockNumber\",\"params\":[]}\nCache hit: {\"jsonrpc\":\"2.0\",\"method\":\"eth_blockNumber\",\"params\":[]}\nCache hit: {\"jsonrpc\":\"2.0\",\"method\":\"eth_blockNumber\",\"params\":[]}\nCache hit: {\"jsonrpc\":\"2.0\",\"method\":\"eth_blockNumber\",\"params\":[]}\n```\n\n## Benefits\n\n### Caching\n\nEtherproxy provides several benefits in multi-node scenarios. For instance, requests such as `eth_blockNumber` and `eth_getLogs` are frequently called, sometimes generating many unnecessary requests. By using a reverse proxy, the same requests made within a small time period are grouped together and sent to your JSON-RPC endpoint only once.\n\nAs a result, all local nodes receive identical correct responses, and the number of actual requests sent is significantly reduced, which helps to **preserve your request quota** in case of a paid third-party, or **reduce the load** when you run your own Ethereum node.\n\n### Failover\n\nFailover is an essential aspect of maintaining high availability and reliability in network services. Etherproxy's seamless failover capability ensures that if one JSON-RPC endpoint becomes unreachable, the traffic is automatically redirected to another configured endpoint without interruption.\n\n## Error handling\n\nWhenever an error is thrown, Etherproxy responds with a `503 Service Unavailable` status.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fethersphere%2Fetherproxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fethersphere%2Fetherproxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fethersphere%2Fetherproxy/lists"}