getSupportedEntryPoints
calls eth_supportedEntryPoints
and returns the entry points the RPC supports
Usage
ts
import { client } from "./client";
const entryPoints = await client.getSupportedEntryPoints();
ts
import { createBundlerClient, mainnet } from "@alchemy/aa-core";
import { http } from "viem";
export const client = createBundlerClient({
chain: mainnet,
transport: http("https://eth-mainnet.g.alchemy.com/v2/demo"),
});
Returns
Promise<Address[]>
The list of supported entry points by the underlying RPC Provider