add_new_safe_owners

Documentation for eth_defi.safe.deployment.add_new_safe_owners function.

add_new_safe_owners(web3, safe, deployer, owners, threshold, gas_per_tx=500000, gnosis_safe_state_safety_sleep=12, hot_wallet=None, tx_confirmation_timeout=300.0)

Update Safe owners and threshold list.

  • Safe cannot replace the existing owner list

  • Designed to create the owner list after a deployment.

  • The multisig must be in 1-of-1 deployer state

Note

We cannot remove deployer account from the list, but it must be done by the new owners

Parameters
  • gas_per_tx – Gas limit for a single transaction.

  • between_calls_sleep – Deployer hack

  • hot_wallet (HotWallet | None) – When provided, allocate transaction nonces from the wallet’s internal counter instead of letting safe_eth read from the RPC node. Avoids stale-nonce errors on load-balanced endpoints.

  • tx_confirmation_timeout (float) –

    How long to wait for each transaction to be mined, in seconds.

    See DEFAULT_TX_CONFIRMATION_TIMEOUT for why this is longer than the generic transaction confirmation default.

  • web3 (Web3) –

  • safe (Safe) –

  • deployer (LocalAccount) –

  • owners (list[HexAddress | str]) –

  • threshold (int) –

More info: