Closed coolaj86 closed 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
GET https://insight.dash.org/socket.io/?EIO=3&transport=polling&t=O5N2kgR
t=xxxx
: https://stackoverflow.com/a/4863371896:0{"sid":"EnodbZW5dYRBMgydBcXg","upgrades":["websocket"],"pingInterval":25000,"pingTimeout":5000}2:40
POST https://insight.dash.org/socket.io/?EIO=3&transport=polling&t=O5N2khW&sid=EnodbZW5dYRBMgydBcXg
22:422["subscribe","inv"]
GET https://insight.dash.org/socket.io/?EIO=3&transport=polling&t=O5N2khX&sid=EnodbZW5dYRBMgydBcXg
POST ...
23:423["subscribe","sync"]75:424["subscribe","dashd/addresstxid",["XvSZi1CYuxzzbKJURk3cVTATD9EeNY2wry"]]23:420["subscribe","sync"]75:421["subscribe","dashd/addresstxid",["XvSZi1CYuxzzbKJURk3cVTATD9EeNY2wry"]]23:425["subscribe","sync"]
wss://insight.dash.org/socket.io/?EIO=3&transport=websocket&sid=EnodbZW5dYRBMgydBcXg
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)
Check SmartSendRateidealfew inputs (not all inputs)debug: true
optionWhilst command is running, auto-forward new payments to Hot WalletFinishing Touches
Other
dashcore-lib/lib/transaction/transaction.js