buildSessionKeysToRemoveStruct

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

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