@me2em/x402
    Preparing search index...

    Interface PaymentSigner

    The key-owner side of the x402 payment contract (ТЗ x402 v1.2 §3.3): implementations live with the wallet owners — @me2em/solana ships one (M2); EVM wallets are the application's side. Chain-specific parameters (e.g. a blockhash source) go through the implementation's constructor — the contract itself never changes.

    interface PaymentSigner {
        capabilities: readonly SignerCapability[];
        signPayment(
            requirements: X402PaymentRequirements,
            resource: X402ResourceInfo,
        ): Promise<Record<string, unknown>>;
    }
    Index
    capabilities: readonly SignerCapability[]

    What this signer can pay for; matched against accepts entries.

    • Signs the payment; the result becomes PaymentPayload.payload.

      Parameters

      • requirements: X402PaymentRequirements
      • resource: X402ResourceInfo

      Returns Promise<Record<string, unknown>>