@biconomy/abstractjs
Version:
SDK for Biconomy integration with support for account abstraction, smart accounts, ERC-4337.
17 lines • 635 B
JavaScript
/**
* Checks if the account is delegated
*
* @param parameters - {@link IsDelegatedParameters} Configuration for checking if the account is delegated
* @param parameters.account - The multichain smart account to check if it is delegated
*
* @returns Promise resolving to boolean
*
* @example
* const isDelegated = await isDelegated({
* account: myMultichainAccount
* });
*
* console.log(`Is delegated: ${isDelegated}`);
*/
export const isDelegated = async (parameters) => (await Promise.all(parameters.account.deployments.map(({ isDelegated }) => isDelegated()))).every(Boolean);
//# sourceMappingURL=isDelegated.js.map