Starter Kit Reference
SafeClient
createChangeThresholdTransaction

createChangeThresholdTransaction

Creates a Safe transaction to change the threshold of the connected Safe.

Usage


_10
import { safeClient } from './setup.ts'
_10
_10
const transaction = await safeClient.createChangeThresholdTransaction({
_10
threshold: 2
_10
})
_10
_10
const txResult = await safeClient.send({
_10
transactions: [transaction]
_10
})

Returns

Promise<TransactionBase>

The Safe transaction to change the threshold of the connected Safe.

Parameters

threshold

  • Type: string

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


_10
const transaction = await safeClient.createChangeThresholdTransaction({
_10
threshold
_10
})

Was this page helpful?