A relay and protection system for Nano nodes. https://github.com/Joohansson/NanoRPCProxy
50K+
NanoRPCProxy is a relay and protection system that operates between a client and a Nano node RPC interface. It makes it possible to set the RPC interface public to the Internet without compromising the security of the node itself. The Nano node has no built-in functionality for user authentication, rate-limiting or caching which makes it dangerous to open up without protection as this proxy provides. With NanoRPCProxy you can, for example, serve a mobile app or web frontend with indirect node calls.
In reality, it can be used for Nano wallets, exchanges, block explorers, public APIs, monitor systems, Point of Sale or anything that communicates with a node.
The built-in token system makes it possible to serve requests beyond the default limits and monetize your backend via direct Nano token purchases.
Demo clients/code for Curl, JS, REACT, Python and Flask are available to test your own server.
Public API demo client with token support: https://api.nanos.cc
In addition to the RPC interface, NanoRPCProxy also has built-in support for certain websocket subscriptions offered by the Nano node, for example block confirmations. Similar to the RPC, the websocket is DDOS protected and acts as a secure layer between the client and the node. This allows, for example, a public websocket open to everyone who needs to track certain accounts in real-time, without the need to set up their own node. That could be, but not limited to:
Demo clients for websocket is available for JS (web) and Node.js.
Public websocket demo: https://api.nanos.cc/socket
Apart from increased security, NanoRPCProxy solves the scalability issue where a node can't serve too many clients and lets the node do what it's supposed to do, ie. process blocks as fast as possible. The system can be scaled up to serve thousands of clients with only one connection to the node per proxy server.
Full description: https://github.com/Joohansson/NanoRPCProxy
Content type
Image
Digest
Size
355.6 MB
Last updated
almost 5 years ago
docker pull nanojson/nanorpcproxy