Alchemy Logo

SupportedEntryPoint

type SupportedEntryPoint<TEntryPointVersion, TChain, TAbi> = object;

Defined in: aa-sdk/core/src/entrypoint/types.ts:23

Type ParameterDefault type

TEntryPointVersion extends EntryPointVersion

EntryPointVersion

TChain extends Chain

Chain

TAbi extends Abi | readonly unknown[]

Abi

PropertyTypeDescription

abi

GetContractParameters<Transport, TChain, Account, TAbi>["abi"]

address

Record<TChain["id"] | "default", Address>

getUserOperationHash

(request, entryPointAddress, chainId) => Hash

Generates a hash for a UserOperation valid from entry point version 0.6 onwards

packUserOperation

(userOperation) => Hex

Pack the user operation data into bytes for hashing for entry point version 0.6 onwards Reference: v6: https://github.com/eth-infinitism/account-abstraction/blob/releases/v0.6/test/UserOp.ts#L16-L61 v7: https://github.com/eth-infinitism/account-abstraction/blob/releases/v0.7/test/UserOp.ts#L28-L67

version

TEntryPointVersion

Was this page helpful?