Starter Kit Reference
SafeClient
createSwapOwnerTransaction

createSwapOwnerTransaction

Creates a Safe transaction to swap an owner of the connected Safe.

Usage


_10
import { safeClient } from './setup.ts'
_10
_10
const transaction = await safeClient.createSwapOwnerTransaction({
_10
oldOwnerAddress: '0x...',
_10
newOwnerAddress: '0x...'
_10
})
_10
_10
const txResult = await safeClient.send({
_10
transactions: [transaction]
_10
})

Returns

Promise<TransactionBase>

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

Parameters

oldOwnerAddress

  • Type: string

The address to remove as an owner.


_10
const transaction = await safeClient.createSwapOwnerTransaction({
_10
oldOwnerAddress: '0x...'
_10
})

newOwnerAddress (Optional)

  • Type: string

The address to add as an owner.


_10
const transaction = await safeClient.createSwapOwnerTransaction({
_10
oldOwnerAddress: '0x...',
_10
newOwnerAddress: '0x...'
_10
})

Was this page helpful?