dashhive / crowdnode.js

CrowdNode SDK for Node.js
https://github.com/dashhive/crowdnode.js
MIT License
5 stars 3 forks source link

Todo list #2

Closed coolaj86 closed 2 years ago

coolaj86 commented 2 years ago

Finishing Touches

Other

coolaj86 commented 2 years ago

Install merchant-wallet:

git clone git@github.com:therootcompany/merchant-wallet.js.git
pushd ./merchant-wallet.js/
npm ci --only=production

Create a new wallet, complete with xpub key:

./bin/mnemonic-to-secret-env.sh
./bin/xpubkey-to-env.sh
# Show address to pay to from normal wallet
./bin/addr-from-xpub.js 0

# Get private key for 0th address:
./bin/wif-from-mnemonic.js 0

# Show both addresses and their balances
./bin/addr-from-xpub.js 0-1

Check UTXOs

# https://insight.dash.org/insight-api/addr/${addr}/utxo
node get-utxos.js XvSZi1CYuxzzbKJURk3cVTATD9EeNY2wry
coolaj86 commented 2 years ago

WebSocket Notes:

coolaj86 commented 2 years ago

Maybe use https://github.com/trezor/blockbook/blob/master/docs/api.md

We need a https://blockbook.dash.org/

coolaj86 commented 2 years ago
crowdnode stake # do it all
crowdnode help
crowdnode generate # Xxxxxxxxx.wif
crowdnode select "0'/1/20" # from mnemonic
crowdnode signup ./Xxxxxxxxx.wif
crowdnode accept ./Xxxxxxxxx.wif
crowdnode deposit ./Xxxxxxxxx.wif # with optional amount
crowdnode withdrawal ./Xxxxxxxxx.wif 1000 # with optional amount (may need confirm)