Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: most useful RPCs for debugging #17

Open
coolaj86 opened this issue Apr 5, 2024 · 0 comments
Open

doc: most useful RPCs for debugging #17

coolaj86 opened this issue Apr 5, 2024 · 0 comments

Comments

@coolaj86
Copy link
Member

coolaj86 commented Apr 5, 2024

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
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant