Noti

CLI & Wallet RPC

Create or restore a wallet from the terminal, send and receive Noticoin, and query the Wallet RPC service.

Create a CLI wallet

Start the daemon and wait for it to synchronize. In a separate PowerShell window, open the extracted Windows CLI + node directory and create the wallet. Follow the prompts to set a password and choose the recovery phrase language.

Windows PowerShell
New-Item -ItemType Directory -Force .\data | Out-Null
.\noticoin-wallet-cli.exe --generate-new-wallet .\data\my-wallet --daemon-address 127.0.0.1:19081

Write down the recovery phrase and store it offline. The my-wallet.keys file contains the encrypted keys, and the my-wallet file stores wallet data. Keep both when backing up the wallet files.

Open an existing wallet

Use the base wallet path and enter its password when prompted.

Windows PowerShell
.\noticoin-wallet-cli.exe --wallet-file .\data\my-wallet --daemon-address 127.0.0.1:19081

Restore from a recovery phrase

Choose a new filename and enter the recovery phrase when prompted. Leave the seed offset passphrase blank unless you previously set one. Height 0 scans from the beginning. Use a known height at or before your first transfer to speed up the scan.

Windows PowerShell
.\noticoin-wallet-cli.exe --restore-deterministic-wallet --generate-new-wallet .\data\restored-wallet --restore-height 0 --daemon-address 127.0.0.1:19081

Receive Noticoin

Use address to show the primary address. Use address new to create a subaddress and share the receiving address of your choice.

Wallet console
address
address new

Use refresh to scan for new transfers, balance to see the total and unlocked balance, and show_transfers in to list incoming transfers.

Wallet console
refresh
balance
show_transfers in

Send Noticoin

Replace DESTINATION_ADDRESS with the recipient’s Noticoin address and 0.5 with your amount. Check the recipient, amount, and network fee in the wallet prompt before confirming.

Wallet console
transfer DESTINATION_ADDRESS 0.5

Use show_transfers out for outgoing history. Run save to write the current wallet data and exit to close the wallet.

Wallet console
show_transfers out
save
exit

Run Wallet RPC

Wallet RPC serves a wallet over JSON-RPC. The node daemon handles the chain and must already be running. Close the wallet in the GUI or CLI before opening the same file in Wallet RPC.

Create wallet-rpc.conf next to the launcher and replace the example password with a strong RPC password. The service asks for the wallet-file password when it starts.

wallet-rpc.conf
rpc-login=noti-rpc:REPLACE_WITH_A_STRONG_PASSWORD
Windows PowerShell
.\noticoin-wallet-rpc.exe --config-file .\wallet-rpc.conf --wallet-file .\data\my-wallet --prompt-for-password --daemon-address 127.0.0.1:19081 --rpc-bind-ip 127.0.0.1 --rpc-bind-port 19083

In a separate PowerShell window, read the balance of account 0. curl asks for the RPC password from the configuration file.

Windows PowerShell
$request = @{ jsonrpc = "2.0"; id = "balance"; method = "get_balance"; params = @{ account_index = 0 } }
$request | ConvertTo-Json -Compress | curl.exe --digest --user noti-rpc -H "Content-Type: application/json" --data-binary "@-" http://127.0.0.1:19083/json_rpc

The response returns balance and unlocked_balance in atomic units. One Noticoin equals 1,000,000,000 atomic units. Press Ctrl+C in the Wallet RPC terminal to stop the service.