@alchemy/aa-core
Version:
viem based SDK that enables interactions with ERC-4337 Smart Accounts. ABIs are based off the definitions generated in @account-abstraction/contracts
14 lines (12 loc) • 407 B
text/typescript
import type { Address, Chain, Client, Transport } from "viem";
import type { BundlerRpcSchema } from "../../client/decorators/bundlerClient";
export const getSupportedEntryPoints = async <
TClient extends Client<Transport, Chain | undefined, any, BundlerRpcSchema>
>(
client: TClient
): Promise<Address[]> => {
return client.request({
method: "eth_supportedEntryPoints",
params: [],
});
};