A signer that can sign messages and typed data.

signerType - the type of the signer (e.g. local, hardware, etc.)

inner - the inner client of

getAddress - get the address of the signer

signMessage - sign a message

signTypedData - sign typed data

interface SmartAccountSigner<Inner> {
    getAddress: (() => Promise<`0x${string}`>);
    inner: Inner;
    signMessage: ((message: SignableMessage) => Promise<`0x${string}`>);
    signTypedData: (<const TTypedData, TPrimaryType>(params: TypedDataDefinition<TTypedData, TPrimaryType>) => Promise<`0x${string}`>);
    signerType: string;
}

Type Parameters

  • Inner = any

    the generic type of the inner client that the signer wraps to provide functionality such as signing, etc.

Properties

getAddress: (() => Promise<`0x${string}`>)
inner: Inner
signMessage: ((message: SignableMessage) => Promise<`0x${string}`>)
signTypedData: (<const TTypedData, TPrimaryType>(params: TypedDataDefinition<TTypedData, TPrimaryType>) => Promise<`0x${string}`>)
signerType: string