https://github.com/ecency/rpc-proxy
json-rpc proxy and caching
https://github.com/ecency/rpc-proxy
blockchain caching cryptocurrency json-rpc proxy python rpc
Last synced: 4 months ago
JSON representation
json-rpc proxy and caching
- Host: GitHub
- URL: https://github.com/ecency/rpc-proxy
- Owner: ecency
- License: mit
- Created: 2020-11-02T12:41:08.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2023-07-17T22:09:24.000Z (over 2 years ago)
- Last Synced: 2025-07-19T18:46:04.387Z (5 months ago)
- Topics: blockchain, caching, cryptocurrency, json-rpc, proxy, python, rpc
- Language: Python
- Homepage: https://ecency.com
- Size: 74.2 KB
- Stars: 10
- Watchers: 3
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RPC-PROXY
Generalized, easy to use RPC Proxy written in Python with support to `websocket` and `http` connections. Includes config example for [Hive blockchain](https://hive.io). It is written with simple and clean code that can be used by any blockchain or software with JSON-RPC protocols. We have tried number of RPC proxy scripts some of them are over-engineered and some lack extensibility or complicated to get started. So we wrote rpc-proxy in hopes to help others as well as ourselves.
Our RPC, full node on Hive uses this: https://rpc.ecency.com
## Installation
```
$ git clone https://github.com/ecency/rpc-proxy && cd rpc-proxy && pip3 install -e .
```
## Usage
`$ rpc_proxy --config ./path/to/config.json`
### Environment Variables
| | Default |
| ------------ | ------------ |
| HOST | 127.0.0.1 |
| PORT | 5002 |
| WORKERS | 4 |
| DEBUG | False |
**Redis server must be working at 127.0.0.1:6379**