Nunchuk Setup
Install
npm install -g nunchuk-cliMake sure nunchuk is on PATH.
Authenticate
Get an API key from https://developer.nunchuk.io/ first.
Interactive login:
nunchuk auth loginNon-interactive login:
nunchuk auth login --api-key <api-secret-key>auth login supports both the interactive prompt and --api-key <api-secret-key>.
If the agent is executing the command itself, prefer:
nunchuk auth login --api-key <api-secret-key>Use plain nunchuk auth login when the user is running the command manually and will enter the key in the prompt.
Configure Network
Set network:
nunchuk network set testnetNetwork values are mainnet or testnet.
Configure Electrum
Show the active Electrum server:
nunchuk config electrum getSet a custom Electrum server:
nunchuk config electrum set ssl://electrum.example.com:50002Reset to the network default:
nunchuk config electrum resetInspect
Check auth status:
nunchuk auth statusInspect saved config/network:
nunchuk config show