Skip to content

doc: most useful RPCs for debugging #17

@coolaj86

Description

@coolaj86

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
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions