getRemoveGuardianAction
Generate the transaction data needed to remove a guardian from an account.
Usage
const action = await getRemoveGuardianAction({
client: publicClient,
guardian: '0x123...'
})
Parameters
client
- Type:
PublicClient
The public client instance used to interact with the blockchain.
guardian
The address of the guardian to remove.
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