Starter Kit Reference
SafeClient
createRemoveOwnerTransaction

createRemoveOwnerTransaction

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

Usage

import { safeClient } from './setup.ts'

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

const txResult = await safeClient.send({
transactions: [transaction]
})

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.

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

threshold (Optional)

  • Type: string

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

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

Was this page helpful?

We use cookies to provide you with the best experience and to help improve our website and application. Please read our Cookie Policy for more information. By clicking "Accept all", you agree to the storing of cookies on your device to enhance site navigation, analyze site usage and provide customer support.