isSigner

1function isSigner(signer): signer is SmartAccountSigner;

Defined in: aa-sdk/core/src/signer/schema.ts:18

Checks if the provided object is a SmartAccountSigner.

Example

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

Parameters

ParameterTypeDescription

signer

any

the object to check

Returns

signer is SmartAccountSigner

A boolean indicating whether the object is a SmartAccountSigner