dashhive / DashJoin.js

Dash CoinJoin JavaScript (Browser & Node) SDK
MIT License
2 stars 0 forks source link

doc: most useful RPCs for debugging #17

Open coolaj86 opened 3 months ago

coolaj86 commented 3 months ago

Just listing some common ones here and what they do:

RPC Notes
getbalance just the number
getbalances split by maturity
gettransaction <tx> -
listtransactions '*' 1000 shows the last 1000 transactions

ListTransactions

my_username='luke'
my_txid='bed1841cfe98b13ca0de13c7c243c787fb6fe6ba64af6a60a252ff06ed082160'

dash-cli -conf="$HOME"/.dashmate/local_seed/core/dash.conf \
    -rpcwallet="${my_username}" \
    listtransactions '*' 1000 |
        jq '.[] | select(.txid == "''"${my_txid}"")'
  {
    "address": "yTXs7rVBT928CpDN7H4BvhbHuTU7rJoRDW",
    "category": "immature",
    "amount": 0.01697629,
    "label": "",
    "vout": 0,
    "confirmations": 4,
    "instantlock": true,
    "instantlock_internal": false,
    "chainlock": true,
    "generated": true,
    "blockhash": "4318a58aef2899ab410ef8197adb34b608e1b44b0de9bb2aa61b82fe47eb62d8",
    "blockheight": 8315,
    "blockindex": 0,
    "blocktime": 1712921984,
    "txid": "bed1841cfe98b13ca0de13c7c243c787fb6fe6ba64af6a60a252ff06ed082160",
    "walletconflicts": [
    ],
    "time": 1712921949,
    "timereceived": 1712921949
  }