• Creates a Pay-to-Taproot (P2TR) payment object.

    Parameters

    • a: Payment

      The payment object containing the necessary data for P2TR.

    • Optionalopts: PaymentOpts

      Optional payment options.

    Returns Payment

    The P2TR payment object.

    If the provided data is invalid or insufficient.