bitcoind.app
CommandsGuidesContact ↗
Home/Wallet/setwalletflag
Wallet

setwalletflag

Change the state of a given wallet flag for a wallet.

Parameters

flagstringREQUIRED
The flag name (e.g. "avoid_reuse")
valuebooleanoptional
The flag value. Default: true

Returns

objectObject with flag_name, flag_state, and warnings

Code Examples

curl --user myuser --data-binary '{"jsonrpc":"1.0","id":"1","method":"setwalletflag","params":["avoid_reuse",true]}' -H 'content-type:text/plain;' http://127.0.0.1:8332/

Example Response

{
  "flag_name": "avoid_reuse",
  "flag_state": true,
  "warnings": ""
}
← Previous
settxfee
Next →
signmessage

More Wallet Commands

abandontransactioncreatewalletdumpprivkeygetbalancegetnewaddressgettransaction

bitcoind.app — Bitcoin Core RPC Reference

GuidesContact ↗