absolutepay (Node SDK) - v0.7.1
    Preparing search index...

    Preview the total fee before committing to a payment (scope: balances:read).

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Compute the total fee for a hypothetical amount. No funds move — this is a pure quote.

      Parameters

      • params: { amount: string; chain?: string; currency: string; paymentType?: PaymentType }

        Preview inputs.

        • amount: string

          Gross amount to price, as a decimal string (e.g. "100.00"). Required.

        • Optionalchain?: string

          Network for the fee (e.g. "MATIC"). Required for WITHDRAWAL/PAYOUT (payout fees are per-chain); ignored for pay-in types.

        • currency: string

          Currency/asset code of the amount (e.g. "USDT"). Required.

        • OptionalpaymentType?: PaymentType

          Which PaymentType to price. Optional; defaults to CHECKOUT.

      Returns Promise<FeePreview>

      A FeePreview with the total fee and net.

      chain_required (400) if paymentType is WITHDRAWAL/PAYOUT and chain is missing; otherwise on failure (e.g. 401/403 missing balances:read).