ord icon indicating copy to clipboard operation
ord copied to clipboard

Add command to list wallets

Open casey opened this issue 4 months ago • 7 comments

casey avatar Mar 05 '24 05:03 casey

for this feat, what info should output contain?

case 1 listwallets: bitcoin-cli -conf=bitcoin.conf listwallets

[
  "ord"
]

case 2 listreceivedbyaddress: bitcoin-cli -conf=bitcoin.conf listreceivedbyaddress 0 true

[
  {
    "address": "bcrt1pzlmlufu6fp6m0ky7l4p527qrtqsnxcd20an2vz60w32676r5yrpsf3dxme",
    "amount": 0.00000000,
    "confirmations": 0,
    "label": "",
    "txids": [
    ]
  },
  {
    "address": "bcrt1pr2t5wgc0a692el9p9d5fr3398w0p9x7xnk8untmunql20d7vvwjst6kt26",
    "amount": 0.00000000,
    "confirmations": 0,
    "label": "",
    "txids": [
    ]
  },
  {
    "address": "bcrt1pxq750yhct0las72zmqzfnh8nsy8ut72m0pmt6njsq9pknylsqs2q5v6pu3",
    "amount": 0.00000000,
    "confirmations": 0,
    "label": "",
    "txids": [
    ]
  }
]

or other utxo info

bingryan avatar Mar 07 '24 05:03 bingryan

It should probably just be a wrapper around bitcoin-cli listwalletdir (shows loaded and unloaded wallets).

ord wallets
[
    "ord"
    "hodl"
     "throwaway"
     "test"
]

If you feel really motivated you could check if a wallet is an ord wallet by looking at the descriptors and then only show those and not normal Bitcoin Core wallets.

Let me know if you have any further questions!

raphjaph avatar Mar 11 '24 04:03 raphjaph

output should contain address information? or only display wallet name ? looks like:

ord wallets
[
    "ord"
    "hodl"
     "throwaway"
     "test"
]

bingryan avatar Mar 13 '24 09:03 bingryan

I plan to code an ord-wallet-extension, this extension only depends on ord server.

bingryan avatar Mar 14 '24 01:03 bingryan

Only wallet name

raphjaph avatar Mar 14 '24 17:03 raphjaph

Maybe ord wallet --list is better choice ?

bingryan avatar Mar 17 '24 14:03 bingryan

I like ord wallets. It's short and simple

raphjaph avatar Mar 17 '24 23:03 raphjaph