Skip to content

isSmartAccountWithSigner

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

Import

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

Usage

import { toSmartContractAccount } from "@aa-sdk/core";
 
const account = await toSmartContractAccount(...);
 
console.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.