bitcoin-core: dumpprivkey, dumpwallet

1. Set rpcAuth to bobAuth

$ export bobAuth='bob:87fb0fbdd610473af0f18666f60c0311$7aac966ea1ef5a0f6b547dc7af4408ad8d262fc0a1c8c34924f653e19a64e789'
$ echo $bobAuth
bob:87fb0fbdd610473af0f18666f60c0311$7aac966ea1ef5a0f6b547dc7af4408ad8d262fc0a1c8c34924f653e19a64e789

2. getnetworkinfo
– “version”:230000

$ curl -u "${bobAuth}" --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "getnetworkinfo", "params": []}' -H 'content-type: te
xt/plain;' http://127.0.0.1:10002/
{"result":{"version":230000,"subversion":"/Satoshi:23.0.0/","protocolversion":70016,"localservices":"0000000000000409","localservicesnames":["NETWORK","WITNESS","NETWORK_LIMITED"],"localrelay":true,"timeoffset":0,"networkactive":true,"connections":1,"connections_in":0,"connections_out":1,"networks":[{"name":"ipv4","limited":false,"reachable":true,"proxy":"","proxy_randomize_credentials":false},{"name":"ipv6","limited":false,"reachable":true,"proxy":"","proxy_randomize_credentials":false},{"name":"onion","limited":true,"reachable":false,"proxy":"","proxy_randomize_credentials":false},{"name":"i2p","limited":true,"reachable":false,"proxy":"","proxy_randomize_credentials":false},{"name":"cjdns","limited":true,"reachable":false,"proxy":"","proxy_randomize_credentials":false}],"relayfee":0.00001000,"incrementalfee":0.00001000,"localaddresses":[],"warnings":""},"error":null,"id":"curltest"}

3. getbalance
– “result”:1.09224200

$ curl -u "${bobAuth}" --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "getbalance", "params": []}' -H 'content-type: text/plain;' http://127.0.0.1:10002/
{"result":1.09224200,"error":null,"id":"curltest"}

4. dumpprivkey
– “result”:null
– “message”:”This type of wallet does not support this command”

$ curl -u "${bobAuth}" --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "dumpprivkey", "params": ["bcrt1qj8mle4z5vw4pkx3mvjn9kkvqmrap55yd6gj4hk"]}' -H 'content-type: text/plain;' http://127.0.0.1:10002/
{"result":null,"error":{"code":-4,"message":"This type of wallet does not support this command"},"id":"curltest"}

5. dumpwallet
– “result”:null
– “message”:”This type of wallet does not support this command”

$ curl -u "${bobAuth}" --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "dumpwallet", "params": ["/home/user02/dev/bob/bitc
oin.conf"]}' -H 'content-type: text/plain;' http://127.0.0.1:10002/
{"result":null,"error":{"code":-4,"message":"This type of wallet does not support this command"},"id":"curltest"}

6.
https://bitcointalk.org/index.php?topic=5351210.0

As Legacy Wallets and Descriptor Wallets use different mechanisms for storing and importing scripts and keys the existing import RPCs have been disabled for descriptor wallets. New export RPCs for Descriptor Wallets have not yet been added.

The following RPCs are disabled for Descriptor Wallets:

- importprivkey
- importpubkey
- importaddress
- importwallet
- dumpprivkey
- dumpwallet
- importmulti
- addmultisigaddress
- sethdseed

7.methods.js

$ grep list bitcoin-core/src/methods.js
  listAccounts: {
  listAddressGroupings: {
  listBanned: {
  listLabels: {
  listLockUnspent: {
  listReceivedByAccount: {
  listReceivedByAddress: {
  listReceivedByLabel: {
  listSinceBlock: {
  listTransactions: {
  listUnspent: {
  listWalletDir: {
  listWallets: {