RPC server

To setup an RPC server for Bytecoin one needs to configure the daemon, bytecoind, to run the RPC service for all connections. Setting up the daemon itself was explained in a previous blog.

By default the RPC service will be setup for the local host. To allow connections from outside you can either specify one IP or allow all. This is setup by starting the daemon with following command line call:

./launch bytecoind –rpc-bind-ip= –rpc-bind-port=8081

IP means everybody. You can also specify which is the default behavior limiting the RPC service to the localhost. It’s also possible to target a specify IP, but I haven’t tested that option yet, so not 100% sure it will work.

If the setup is to support large number of clients for RPC you may want to opt out of supporting p2p network. ¬†You can set this up by adding –hide-my-port, i.e

./launch bytecoind –rpc-bind-ip= –rpc-bind-port=8081 –hide-my-port



Bytecoin wiki

Spread the love