getChangeThresholdAction
Generate the transaction data needed to change the guardian approval threshold for an account.
Usage
const action = await getChangeThresholdAction({
client: publicClient,
threshold: 2n
})Parameters
client
- Type:
PublicClient
The public client instance used to interact with the blockchain.
threshold
- Type:
bigint
The new threshold value for guardian approvals. Must be greater than 0 and not exceed total guardian weight.
Returns
action
- Type:
Promise<Execution>
Returns an execution object containing:
to: Email recovery module contract addresstarget: Email recovery module contract addressvalue: Amount of native tokens to send (0)callData: Encoded function datadata: Encoded function data