Skip to content

WalletGuild/desw-dash

Repository files navigation

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.

Installation

This plugin requires 2 installation steps. The first installs the python package and the second inserts empty balance records into the database.

python setup.py install
python install.py

Configuration

This plugin expects a desw.ini configuration file. See example_cfg.ini for an example. Like other TAPPs, this file is expected to be in /etc/tapp on *nix systems.

The most relevant part for this plugin is the dash configuration, which includes the RPC connection URL, a confirmation requirement, the transaction fee, and supported currencies.

[dash]
RPCURL: http://dashrpc:pass@127.0.0.1:8332
CONFS: 3
FEE: 0.0001
CURRENCIES: ["DASH"]

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, the desw.ini file must be accessible.

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

About

Dash RPC plugin for the Shared Wallet project.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors