isSigner

Checks if the provided object is a SmartAccountSigner.

Import

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

Usage

1import { isSigner, LocalAccountSigner } from "@aa-sdk/core";
2
3const signer = new LocalAccountSigner(...);
4console.log(isSigner(signer)); // true

Parameters

signer

any the object to check

Returns

boolean A boolean indicating whether the object is a SmartAccountSigner