UNPKG

@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

13 lines 451 B
import { smartAccountClientMethodKeys } from "./decorators/smartAccountClient.js"; export function isSmartAccountClient(client) { for (const key of smartAccountClientMethodKeys) { if (!(key in client)) { return false; } } return client && "middleware" in client; } export function isBaseSmartAccountClient(client) { return client && "middleware" in client; } //# sourceMappingURL=isSmartAccountClient.js.map