useUpdateOwners
Updates the owners of the Safe connected to the SafeProvider
.
Usage
The connected Safe must be already deployed.
_10import { useUpdateOwners } from '@safe-global/safe-react-hooks'_10_10function App() {_10 const { add, remove, swap } = useUpdateOwners()_10_10 // ..._10}
Parameters
UseUpdateOwnersParams
Parameters to customize the hook behavior.
_10import { UseUpdateOwnersParams } from '@safe-global/safe-react-hooks'
config
(Optional)
- Type:
SafeConfigWithSigner
The configuration used instead of the one from the nearest SafeProvider
.
_10import { config } from './config.ts'_10_10const result = useUpdateOwners({_10 config_10})
Returns
UseUpdateOwnersReturnType
_10import { UseUpdateOwnersReturnType } from '@safe-global/safe-react-hooks'