getEntryPoint
Retrieves the entry point definition for the specified chain and version, falling back to the default version if not provided. Throws an error if the entry point address cannot be found.
Import
import { getEntryPoint } from "@aa-sdk/core";
Usage
import { getEntryPoint } from "@aa-sdk/core";
import { sepolia } from "viem/chains";
const entryPoint060 = getEntryPoint(sepolia);
const entryPoint070 = getEntryPoint(sepolia, { version: "0.7.0" });
Parameters
chain
Chain
The chain for which the entry point is being retrieved
options
GetEntryPointOptions<TEntryPointVersion>
Options containing the version and address overrides for the entry point
Returns
EntryPointDefRegistry<TChain>[EntryPointVersion]
The entry point definition for the specified chain and version