Repository navigation
Config files
setup.sh creates the configuration files used by mnp, monerod and monero-wallet-rpc.
The files are stored in:
~/.config/mnp/
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
Configuration used by monerod.
Mainnet:
rpc-bind-ip=127.0.0.1Stagenet:
stagenet=1
rpc-bind-ip=127.0.0.1Testnet:
testnet=1
rpc-bind-ip=127.0.0.1Example:
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 %sFor a password-protected wallet, setup.sh also adds:
password-file=/home/user/.config/mnp/wallet.passwordDuring 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 %sOne confirmation:
tx-notify=/usr/local/bin/mnp --notify-at 2 --confirmation 1 %sThree confirmations:
tx-notify=/usr/local/bin/mnp --notify-at 2 --confirmation 3 %sChanging monero-wallet-rpc.conf requires restarting monero-wallet-rpc:
./stop.sh
./start.shRPC 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.
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
sucks less