isSmartAccountWithSigner

Determines if the given SmartContractAccount has a signer associated with it.

Import

1import { isSmartAccountWithSigner } from "@aa-sdk/core";

Usage

1import { toSmartContractAccount } from "@aa-sdk/core";
2
3const account = await toSmartContractAccount(...);
4
5console.log(isSmartAccountWithSigner(account)); // false: the base account does not have a publicly accessible signer

Parameters

account

SmartContractAccount The account to check.

Returns

boolean true if the account has a signer, otherwise false.