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 { getEntryPoint } from "@aa-sdk/core";
import { sepolia } from "viem/chains";
const entryPoint060 = getEntryPoint(sepolia);
const entryPoint070 = getEntryPoint(sepolia, { version: "0.7.0" });The chain for which the entry point is being retrieved
Options containing the version and address overrides for the entry point
function getEntryPoint<TEntryPointVersion, TChain>(
chain,
options,
): EntryPointDefRegistry<TChain>[TEntryPointVersion];Defined in: aa-sdk/core/src/entrypoint/index.ts:40
| Type Parameter | Default type |
|---|---|
|
|
|
| Parameter | Type |
|---|---|
|
|
|
|
EntryPointDefRegistry<TChain>[TEntryPointVersion]
function getEntryPoint<TEntryPointVersion, TChain>(
chain,
options?,
): EntryPointDefRegistry<TChain>[TEntryPointVersion];Defined in: aa-sdk/core/src/entrypoint/index.ts:48
| Type Parameter | Default type |
|---|---|
|
|
|
| Parameter | Type |
|---|---|
|
|
|
|
EntryPointDefRegistry<TChain>[TEntryPointVersion]
function getEntryPoint<TChain>(
chain,
options?,
): OneOf<"0.6.0", keyof EntryPointRegistryBase<unknown>>;Defined in: aa-sdk/core/src/entrypoint/index.ts:57
| Parameter | Type |
|---|---|
|
|
|
|
OneOf<"0.6.0", keyof EntryPointRegistryBase<unknown>>