-
Notifications
You must be signed in to change notification settings - Fork 3
How To Use
- Install the latest Nano Node release: https://github.com/nanocurrency/nano-node/releases
- (For nano-node earlier than V19) Modify your config.json. OR
- (For nano-node on or later than V19) Modify your rpc_config.json.
3a) At minimum you will need to change 'rpc_enable' to 'true'
3b) Optionally change 'enable_control' to 'true' if you wish to enable send/recv/account create and other dangerous commands.
3c) Make sure your node rpc 'address' is listening only on your localhost address, especially if 'enable_control' is set as 'true'
3d) (Optional) if you don't use IPv6, enable your IPv4 local address for RPC by changing: "address": "::1" to "address": "::ffff:127.0.0.1". It's worth noting the nano-functions.bash script will use localhost.localdomain on port 55000 as the standard address to reach, so if that name resolves to an address different from your node RPC address, you'll need to change either nano-functions.bash or the RPC address.
- Start the nano node
- Download nano-shell
- Edit nano-functions.bash and search for 'NODEHOST'. Make sure it is set to the address and port of your node RPC so the script can communicate with the Nano Node. E.g. NODEHOST="localhost:55000" or NODEHOST="localhost:7076"
- Source it into your shell, and start using it: source ./nano-functions.bash
For available functions and help, run:
nano_shell_help
and see the API-Documentation