Starter Kit Reference
SafeClient
createAddOwnerTransaction

createAddOwnerTransaction

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

Usage


_10
import { safeClient } from './setup.ts'
_10
_10
const transaction = await safeClient.createAddOwnerTransaction({
_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 add an owner to the connected Safe.

Parameters

ownerAddress

  • Type: string

The address to add as an owner.


_10
const 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.


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

Was this page helpful?