function undelegateAccount(client, params?): Promise<UndelegateAccountResult>;Defined in: packages/wallet-apis/src/actions/undelegateAccount.ts:41
Prepares, signs, and sends an EIP-7702 undelegation to remove delegation from an EOA. Gas is sponsored by Alchemy (requires Enterprise plan).
A BSO (Bundler Sponsorship Override) policy ID must be provided either via
params.capabilities.paymaster.policyId or pre-configured on the client via policyIds.
const result = await client.undelegateAccount();
const status = await client.waitForCallsStatus({ id: result.id });| Parameter | Type | Description |
|---|---|---|
|
| The wallet API client to use for the request |
| Parameters for undelegating the account |
Promise<UndelegateAccountResult>
A Promise that resolves to the result containing the call ID.