React Hooks Reference
useUpdateOwners

useUpdateOwners

Updates the owners of the Safe connected to the SafeProvider.

Usage

The connected Safe must be already deployed.


_10
import { useUpdateOwners } from '@safe-global/safe-react-hooks'
_10
_10
function App() {
_10
const { add, remove, swap } = useUpdateOwners()
_10
_10
// ...
_10
}

Parameters

UseUpdateOwnersParams

Parameters to customize the hook behavior.


_10
import { UseUpdateOwnersParams } from '@safe-global/safe-react-hooks'

config (Optional)

  • Type: SafeConfigWithSigner

The configuration used instead of the one from the nearest SafeProvider.


_10
import { config } from './config.ts'
_10
_10
const result = useUpdateOwners({
_10
config
_10
})

Returns

UseUpdateOwnersReturnType


_10
import { UseUpdateOwnersReturnType } from '@safe-global/safe-react-hooks'

add

remove

swap

Was this page helpful?