---
name: setwalletflag
btcversion: 26.0.0
btcgroup: wallet
permalink: en/doc/26.0.0/rpc/wallet/setwalletflag/
---

setwalletflag "flag" ( value )

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

Arguments:
1. flag     (string, required) The name of the flag to change. Current available flags: avoid_reuse
2. value    (boolean, optional, default=true) The new state.

Result:
{                               (json object)
  "flag_name" : "str",          (string) The name of the flag that was modified
