T402 API Reference - v2.8.0
    Preparing search index...

    Type Alias ClientEvmSigner

    ClientEvmSigner - Used by T402 clients to sign payment authorizations

    This is typically a LocalAccount or wallet that holds private keys and can sign EIP-712 typed data for payment authorizations. Compatible with viem's LocalAccount interface.

    type ClientEvmSigner = {
        address: Address;
        signTypedData(
            message: {
                domain: Record<string, unknown>;
                types: Record<string, unknown>;
                primaryType: string;
                message: Record<string, unknown>;
            },
        ): Promise<`0x${string}`>;
    }
    Index

    Properties

    Methods

    Properties

    address: Address

    Methods

    • Parameters

      • message: {
            domain: Record<string, unknown>;
            types: Record<string, unknown>;
            primaryType: string;
            message: Record<string, unknown>;
        }

      Returns Promise<`0x${string}`>