Starter Kit Reference
SafeClient
createRemoveOwnerTransaction

createRemoveOwnerTransaction

Creates a Safe transaction to remove an owner to the connected Safe.

Usage


_10
import { safeClient } from './setup.ts'
_10
_10
const transaction = await safeClient.createRemoveOwnerTransaction({
_10
ownerAddress: '0x...',
_10
threshold: 2
_10
})
_10
_10
const txResult = await safeClient.send({
_10
transactions: [transaction]
_10
})

Returns

Promise<TransactionBase>

The Safe transaction to remove an owner of the connected Safe.

Parameters

ownerAddress

  • Type: string

The address to remove as an owner.


_10
const transaction = await safeClient.createRemoveOwnerTransaction({
_10
ownerAddress: '0x...'
_10
})

threshold (Optional)

  • Type: string

The new threshold of the connected Safe. If not provided, the current threshold is used.


_10
const transaction = await safeClient.createRemoveOwnerTransaction({
_10
ownerAddress: '0x...',
_10
threshold: 2
_10
})

Was this page helpful?