Shared Wallet Dash RPC Plugin
Dash RPC plugin for the Deginner Shared Wallet project. Allows sending, receiving, and other generic wallet functionality using Dashd over RPC.
Configuration
This plugin expects a .ini configuration file. See example_cfg.ini
for an example. Like other desw plugins, this file can be specified by setting the DESW_CONFIG_FILE
environmental variable, like so.
export DESW_CONFIG_FILE="path/to/cfg.ini"
The most relevant part for this plugin is the dash configuration, which includes the RPC connection URL and a confirmation requirement. InstantX confirmations are counted.
[dash]
RPCURL: http://dashrpc:pass@127.0.0.1:8332
CONFS: 3
Dash.conf
Additionally, you will need to configure dashd to accept RPC requests, and to notify desw_dash
about blocks and transactions. Below is an example dash.conf
file.
rpcuser=dashrpc
rpcpassword=testdash
allowip=127.0.0.1
rpcport=19332
listen=1
server=1
daemon=1
testnet=1
walletnotify=/usr/bin/python /desw-install-location/desw-dash/desw_dash.py transaction %s
blocknotify=/usr/bin/python /desw-install-location/desw-dash/desw_dash.py block %s
Remember that the dashd process also needs to be configured like the rest of desw. Most importantly, DESW_CONFIG_FILE
needs to be set.
Testing
This project requires 2 dash testnet nodes. The first should be configured for normal desw_dash
use, and the second in the DASH
variable of the test
section in the config file. Both should have a nominal (>0.5 coin) balance.
[test]
DASH: http://dashrpc:testpass@remote.server.com:18332