A fault-tolerant, API-agnostic RPC load balancer for blockchain APIs.
⚠️ Project status: nodecore is still under active development. Expect frequent updates and improvements as the project evolves.
nodecore sits in front of your blockchain RPC providers and intelligently distributes requests across them, optimizing for performance metrics such as latency, throughput, and error rate. It continuously scores upstreams in real time and routes each request to the one best able to serve it — with caching, hedging, retries, rate-limiting, and quorum verification layered in.
nodecore is API/protocol-agnostic: it is not tied to a single RPC shape. It speaks JSON-RPC, WebSocket, REST, and gRPC interfaces, so it can front any blockchain API rather than only EVM JSON-RPC.
- Interfaces —
json-rpc(over HTTP),websocket,rest,tendermint, andgrpcupstream connectors. The set available for a given chain is declared by that chain's method spec. - Chains — every chain defined in
chains.yaml. Current chain families are EVM (Ethereum, Polygon, Optimism, Arbitrum, Base, BSC, and many others), Solana, Algorand, Aztec, Aptos, Bitcoin (bitcoin, dogecoin), NEAR, Starknet, TON (v2 HTTP API + v3 indexer), Cosmos SDK (CometBFT RPC + LCD REST), Polkadot/Substrate (polkadot, kusama, vara, avail, asset hubs and more), Stellar (stellar-rpc + Horizon), Sui (native gRPC,sui.rpc.v2), Celestia (DA node JSON-RPC:header.*,blob.*,share.*), and the Ethereum/Gnosis Beacon Chain (consensus layer, REST-only). - Methods — per-chain RPC behavior is data-driven via method specs, covering standard EVM/Solana methods, subscriptions, and EVM filter methods. The specs themselves (and the generated Sui protobuf types) are maintained in the separate
drpcorg/publicmodule, shared across drpc services and pinned ingo.mod; to add or change a method, contribute there and bump the dependency. Methods unsupported by an upstream are automatically banned for it to avoid wasted requests.
- Intelligent routing — dynamically selects the most suitable upstream based on real-time performance metrics (latency, error rate, availability) for optimal speed, reliability, and fault-tolerance. See Upstream config.
- API/protocol-agnostic — JSON-RPC, WebSocket, REST, and gRPC interfaces across EVM, Solana, Algorand, Aztec, Aptos, Bitcoin, NEAR, Starknet, TON, Cosmos SDK, Polkadot/Substrate, Stellar, Sui, Celestia, and the Ethereum/Gnosis Beacon Chain, all driven by data-defined method specs. Cosmos chains are reachable over both shapes of the CometBFT RPC (JSON-RPC and URI calls) plus the LCD REST API. EVM filter methods (
eth_newFilter,eth_getFilterLogs, etc.) are routed only to the upstream where the filter was created. Sui is served over native gRPC with full server reflection — grpcurl and Postman work against nodecore as against a node. See gRPC chain ingress. - Subscriptions — WebSocket subscriptions are aggregated so many identical client subscriptions share one upstream stream, with optional local synthesis of EVM topics (
newHeads,logs, pending transactions). See Subscriptions. - Caching — minimizes redundant traffic by caching frequent requests across in-memory/Redis/Postgres backends with configurable policies. See Cache.
- Failsafe mechanisms — request hedging (duplicate slow requests to multiple upstreams) and configurable automatic retries. See Upstream config.
- Rate limiting — per-method or pattern-based throttling of upstream traffic via reusable budgets or inline rules. See Rate limiting.
- Quorum — request and verify independently-signed responses from upstreams before returning data to the client. See Quorum.
- Flexible authentication — token-based and JWT authentication, plus scoped access keys with fine-grained restrictions (IP, method, and contract address whitelists). See Auth.
- Observability — Prometheus metrics and a public gRPC API for querying upstream and chain state.
- Streaming-first architecture — responses can be streamed to minimize memory footprint and handle large payloads efficiently.
Run with Docker, mounting your config. Images are published to Docker Hub as drpcorg/nodecore:
docker run -p 9090:9090 -v /path/to/config:/nodecore.yml drpcorg/nodecoreA minimal config only needs at least one upstream; all other settings fall back to defaults:
upstream-config:
upstreams:
- id: my-super-upstream
chain: ethereum
connectors:
- type: json-rpc
url: https://path-to-eth-provider.com
- id: my-super-upstream-2
chain: polygon
connectors:
- type: json-rpc
url: https://path-to-polygon-provider.comSend your first request:
curl --location 'http://localhost:9090/queries/ethereum' \
--header 'Content-Type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_getBlockByNumber",
"params": [
"latest",
false
]
}'-
Clone the repository:
git clone https://github.com/drpcorg/nodecore.git
-
Build the binary (this runs
make generate-networksautomatically):make build
-
Run it.
make runreads./nodecore.ymlby default; override the path withNODECORE_CONFIG_PATH:make run # or NODECORE_CONFIG_PATH=/path/to/your/config make runNote:
make rundoes not regenerate chain data — runmake generate-networksfirst if you haven't built.nodecore-local.ymlis a gitignored file for your personal config.
Full documentation lives in docs/nodecore. The canonical configuration schema and entry point is 01-config.md.
| Guide | What it covers |
|---|---|
| Config | Configuration entry point and full schema |
| Server | HTTP, gRPC, metrics, profiling, and TLS settings |
| Auth | Token/JWT authentication and per-key access limits |
| Cache | Cache storages and caching policies |
| Upstream | Upstream providers, failsafe, scoring, and labels |
| Rate limiting | Per-method/pattern throughput control |
| App storages | Shared Redis/Postgres connections |
| Tor setup | Running nodecore behind Tor |
| Metrics | Prometheus metrics catalog |
| Integration | DRPC platform integration |
| Quorum | Signed-response quorum verification |
| Method specs | Per-chain method definitions and how to extend them |
| gRPC API | Public gRPC API for upstream and chain state (dshackle-compatible) |
| Subscriptions | Subscription aggregation and local synthesis |
| gRPC chain ingress | Native gRPC chain traffic: metadata contract, auth, reflection |
nodecore can be integrated with external platforms to provide additional functionality — for example, DRPC for centralized key management and analytics. See Integration.
Container images are on Docker Hub: drpcorg/nodecore.
The Helm chart and deployment instructions are in chart/nodecore. It is also published as an OCI artifact to the GitHub Container Registry (GHCR).
Running nodecore as a Tor hidden service
nodecore can be deployed as a Tor hidden service (.onion) for anonymous, censorship-resistant access:
docker-compose -f docker-compose.tor.yml up -d
cat tor-data/hostname # Get your .onion addressSee the Tor setup guide for full setup, security considerations, and troubleshooting.
Released under the MIT License.