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

    Bitcoin client implementation for the Exact payment scheme.

    Creates signed PSBTs for on-chain Bitcoin payments that can be finalized and broadcast by a facilitator.

    Implements

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    scheme: "exact" = SCHEME_EXACT

    Methods

    • Creates a payment payload for the Exact scheme.

      The payload contains a signed PSBT with a single output paying the required amount to the payTo address.

      Parameters

      • t402Version: number

        The t402 protocol version

      • paymentRequirements: PaymentRequirements

        The payment requirements

      Returns Promise<Pick<PaymentPayload, "t402Version" | "payload">>

      Promise resolving to a payment payload