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

    Function findAndVerifyOffer

    • Find and verify the offer that matches specific payment requirements.

      Returns the verified offer if found and valid, null otherwise.

      Parameters

      • verifier: EIP712OfferReceiptVerifier
      • offers: SignedOffer[]
      • requirements: {
            scheme: string;
            network: string;
            asset: string;
            payTo: string;
            amount: string;
        }
      • Optionaloptions: { expectedSigner?: string; nowSeconds?: number }
        • OptionalexpectedSigner?: string

          Expected signer address (e.g., payTo). If set, verification checks this.

        • OptionalnowSeconds?: number

          Current time in seconds (for expiry check). Defaults to now.

      Returns Promise<{ offer: SignedOffer; signer: string; payload: OfferPayload }>