buildSessionKeysToRemoveStruct

1function buildSessionKeysToRemoveStruct<TTransport, TChain, TAccount>(
2 client,
3 args,
4): Promise<object[]>;

Defined in: account-kit/smart-contracts/dist/types/src/msca/plugins/session-key/utils.d.ts:25

Finds predecessors for each provided key and returns them in the struct ISessionKeyPlugin.SessionKeyToRemove[].

Example

1import { buildSessionKeysToRemoveStruct } from "@account-kit/smart-contracts";
2
3const client = createSmartAccountClient(...);
4
5const keysToRemove = await buildSessionKeysToRemoveStruct(client, {
6 keys: ["0x...", "0x..."],
7});

Type Parameters

Type ParameterDefault type

TTransport extends Transport

Transport

TChain extends undefined | Chain

undefined | Chain

TAccount extends undefined | SmartContractAccount

undefined | SmartContractAccount

Parameters

ParameterTypeDescription

client

Client<TTransport, TChain, TAccount>

The client instance used to interact with the smart account

args

BuildSessionKeysToRemoveStructParams

Arguments to configure the session key removal process

Returns

Promise<object[]>

A promise that resolves to an array of objects each containing a session key and its predecessor