Skip to content

Config files

sucks less edited this page Sep 8, 2026 · 12 revisions

Config Files

setup.sh creates the configuration files used by mnp, monerod and monero-wallet-rpc.

The files are stored in:

~/.config/mnp/

mnp.ini

Configuration used by mnp:

[rpc]
user = mnp
password = RPC_PASSWORD
host = 127.0.0.1
port = 18084

[mnp]
verbose = 0
account = 0

[cfg]
workdir = /tmp/mywallet
mode = rwx------
pipe = rw-------

For compatibility with the current mnp binary, setup.sh creates:

~/.mnp.ini -> ~/.config/mnp/mnp.ini

monerod.conf

Configuration used by monerod.

Mainnet:

rpc-bind-ip=127.0.0.1

Stagenet:

stagenet=1
rpc-bind-ip=127.0.0.1

Testnet:

testnet=1
rpc-bind-ip=127.0.0.1

monero-wallet-rpc.conf

Example:

wallet-file=/home/user/Monero/wallets/mywallet
rpc-bind-ip=127.0.0.1
rpc-bind-port=18084
rpc-login=mnp:RPC_PASSWORD
daemon-address=127.0.0.1:18081
trusted-daemon=1
tx-notify=/usr/local/bin/mnp --notify-at 1 %s

For a password-protected wallet, setup.sh also adds:

password-file=/home/user/.config/mnp/wallet.password

Transaction Notification

During setup:

Confirmations [0]:

The selected value controls the generated tx-notify command.

0 is the default and notifies when the transaction is detected in the txpool:

tx-notify=/usr/local/bin/mnp --notify-at 1 %s

One confirmation:

tx-notify=/usr/local/bin/mnp --notify-at 2 --confirmation 1 %s

Three confirmations:

tx-notify=/usr/local/bin/mnp --notify-at 2 --confirmation 3 %s

Changing monero-wallet-rpc.conf requires restarting monero-wallet-rpc:

./stop.sh
./start.sh

Password Files

RPC credentials are stored in:

~/.config/mnp/rpc.password

For password-protected wallets:

~/.config/mnp/wallet.password

The configuration directory and password files are created with restricted permissions.

~/.mnp.ini

The config file makes things easier. It is used by mnp.

; Monero named pipes (mnp)
; Configuration file for mnp.

[rpc]                           ;rpc host configuration
user = username                 ;rpc user
password = password             ;rpc password
host = 127.0.0.1                ;rpc ip address or domain
port = 18084                    ;rpc port

[mnp]                           ;general mnp configuration
verbose = 0                     ;verbose mode
account = 0                     ;choose account

[cfg]                           ;workdir configuration
workdir = /tmp/mywallet         ;wallet working directory
mode = rwx------                ;permission of workdir rwxrwxrwx
pipe = rw-------                ;permission of pipes rwxrwxrwx

Clone this wiki locally