Documentation exported from Bitcoin Core 30.0

getwalletinfo (30.0.0 RPC)

blockchain

control

mining

network

rawtransactions

signer

util

wallet

zmq

getwalletinfo

Returns an object containing various wallet state info.

Result:
{                                         (json object)
  "walletname" : "str",                   (string) the wallet name
  "walletversion" : n,                    (numeric) (DEPRECATED) only related to unsupported legacy wallet, returns the latest version 169900 for backwards compatibility
  "format" : "str",                       (string) the database format (only sqlite)
  "txcount" : n,                          (numeric) the total number of transactions in the wallet
  "keypoolsize" : n,                      (numeric) how many new keys are pre-generated (only counts external keys)
  "keypoolsize_hd_internal" : n,          (numeric, optional) how many new keys are pre-generated for internal use (used for change outputs, only appears if the wallet is using this feature, otherwise external keys are used)
  "unlocked_until" : xxx,                 (numeric, optional) the UNIX epoch time until which the wallet is unlocked for transfers, or 0 if the wallet is locked (only present for passphrase-encrypted wallets)
  "paytxfee" : n,                         (numeric) the transaction fee configuration, set in BTC/kvB
  "private_keys_enabled" : true|false,    (boolean) false if privatekeys are disabled for this wallet (enforced watch-only wallet)
  "avoid_reuse" : true|false,             (boolean) whether this wallet tracks clean/dirty coins in terms of reuse
  "scanning" : {                          (json object) current scanning details, or false if no scan is in progress
    "duration" : n,                       (numeric) elapsed seconds since scan start
    "progress" : n                        (numeric) scanning progress percentage [0.0, 1.0]
  },
  "descriptors" : true|false,             (boolean) whether this wallet uses descriptors for output script management
  "external_signer" : true|false,         (boolean) whether this wallet is configured to use an external signer such as a hardware wallet
  "blank" : true|false,                   (boolean) Whether this wallet intentionally does not contain any keys, scripts, or descriptors
  "birthtime" : xxx,                      (numeric, optional) The start time for blocks scanning. It could be modified by (re)importing any descriptor with an earlier timestamp.
  "flags" : [                             (json array) The flags currently set on the wallet
    "str",                                (string) The name of the flag
    ...
  ],
  "lastprocessedblock" : {                (json object) hash and height of the block this information was generated on
    "hash" : "hex",                       (string) hash of the block this information was generated on
    "height" : n                          (numeric) height of the block this information was generated on
  }
}

Examples:
> bitcoin-cli getwalletinfo 
> curl --user myusername --data-binary '{"jsonrpc": "2.0", "id": "curltest", "method": "getwalletinfo", "params": []}' -H 'content-type: application/json' http://127.0.0.1:8332/