Skip to content
Alchemy Logo

undelegateAccount

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 });

ParameterTypeDescription

client

InnerWalletApiClient

The wallet API client to use for the request

params?

UndelegateAccountParams

Parameters for undelegating the account

Promise<UndelegateAccountResult>

A Promise that resolves to the result containing the call ID.

Was this page helpful?