isSigner
Checks if the provided object is a SmartAccountSigner
.
Import
import { isSigner } from "@aa-sdk/core";
Usage
import { isSigner, LocalAccountSigner } from "@aa-sdk/core";
const signer = new LocalAccountSigner(...);
console.log(isSigner(signer)); // true
Parameters
signer
any
the object to check
Returns
boolean
A boolean indicating whether the object is a SmartAccountSigner