You can install rai via pip, the Python package manager:
pip install rai
rai requires a running Raiblocks node with RPC enabled. This can be the standalone rai_node
, the rai_wallet
GUI or any other compatible implementation.
- You can download the latest release of
rai_node
andrai_wallet
here. - A Docker image is also available.
- Read the instructions on configuring and running rai_node as a service.
In your config.json
, ensure RPC is enabled and the node is listening to your local interface.
"rpc_enable": "true",
"rpc": {
"address": "::1",
"port": "7076",
"enable_control": "true",
"frontier_request_limit": "16384",
"chain_request_limit": "16384"
}
You can verify your node is running using curl:
curl -g -d '{ "action": "version" }' [::1]:7076
If your node uses a different port or is on a different host, you need to set the following enviroment variables:
RAI_HOST=<your_host> (default: [::1])
RAI_PORT=<your_port> (default: 7076)