createSwapOwnerTransaction
Creates a Safe transaction to swap an owner of the connected Safe.
Usage
_10import { safeClient } from './setup.ts'_10_10const transaction = await safeClient.createSwapOwnerTransaction({_10 oldOwnerAddress: '0x...',_10 newOwnerAddress: '0x...'_10})_10_10const 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.
_10const transaction = await safeClient.createSwapOwnerTransaction({_10 oldOwnerAddress: '0x...'_10})
newOwnerAddress
(Optional)
- Type:
string
The address to add as an owner.
_10const transaction = await safeClient.createSwapOwnerTransaction({_10 oldOwnerAddress: '0x...',_10 newOwnerAddress: '0x...'_10})