createAddOwnerTransaction
Creates a Safe transaction to add an owner to the connected Safe.
Usage
_10import { safeClient } from './setup.ts'_10_10const transaction = await safeClient.createAddOwnerTransaction({_10 ownerAddress: '0x...',_10 threshold: 2_10})_10_10const txResult = await safeClient.send({_10 transactions: [transaction]_10})
Returns
Promise<TransactionBase>
The Safe transaction to add an owner to the connected Safe.
Parameters
ownerAddress
- Type:
string
The address to add as an owner.
_10const transaction = await safeClient.createAddOwnerTransaction({_10 ownerAddress: '0x...'_10})
threshold
(Optional)
- Type:
string
The new threshold of the connected Safe. If not provided, the current threshold is used.
_10const transaction = await safeClient.createAddOwnerTransaction({_10 ownerAddress: '0x...',_10 threshold: 2_10})