{"id":28471248,"url":"https://github.com/requestnetwork/json-rpc-proxy","last_synced_at":"2025-09-01T08:06:47.920Z","repository":{"id":95887465,"uuid":"295377932","full_name":"RequestNetwork/json-rpc-proxy","owner":"RequestNetwork","description":"JSON-RPC caching proxy built with OpenResty","archived":false,"fork":false,"pushed_at":"2020-12-17T07:40:25.000Z","size":21,"stargazers_count":7,"open_issues_count":0,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-01T20:51:25.106Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RequestNetwork.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-09-14T10:11:45.000Z","updated_at":"2023-01-28T14:41:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"e0bbceb0-7146-4985-aa5a-d2bea128ccce","html_url":"https://github.com/RequestNetwork/json-rpc-proxy","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/RequestNetwork/json-rpc-proxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RequestNetwork%2Fjson-rpc-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RequestNetwork%2Fjson-rpc-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RequestNetwork%2Fjson-rpc-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RequestNetwork%2Fjson-rpc-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RequestNetwork","download_url":"https://codeload.github.com/RequestNetwork/json-rpc-proxy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RequestNetwork%2Fjson-rpc-proxy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273093234,"owners_count":25044436,"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","status":"online","status_checked_at":"2025-09-01T02:00:09.058Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-06-07T10:39:57.973Z","updated_at":"2025-09-01T08:06:47.898Z","avatar_url":"https://github.com/RequestNetwork.png","language":"Dockerfile","readme":"# JSON RPC Cache Proxy\n\nThis repo contains an Open-Resty caching proxy for JSON-RPC requests.\nIt caches JSON-RPC requests based on URI and the JSON-RPC `method` and `params` fields.\n\n## Prerequisites\nTo build and run this project you need [docker](https://www.docker.com/) installed and running on your machine.\n\n## Build\nTo build the docker image, go to the root directory of this repository and run:\n```sh\ndocker build -t json-rpc-proxy .\n```\n\n## Run\nTo run the docker image, you can run the following command:\n```sh\ndocker run --env \"ADDRESS=rinkeby.infura.io\" --env \"CACHE_TIME=5s\" -p 8080:80 json-rpc-proxy\n```\nWhere:\n* __ADDRESS__: is the address of the JSON RPC destination.\n* __CACHE_TIME__: is the cache TTL (time to live)\n\n## Use\nIn our example started at the Run step, to get the latest Rinkeby block number we can do:\n```sh\ncurl http://localhost:8080/v3/\u003cYOUR API KEY\u003e \\\n  -X POST \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"jsonrpc\":\"2.0\",\"method\":\"eth_blockNumber\",\"params\": [],\"id\":1}\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frequestnetwork%2Fjson-rpc-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frequestnetwork%2Fjson-rpc-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frequestnetwork%2Fjson-rpc-proxy/lists"}