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

    Interface Money

    A money amount, expressed as a decimal STRING plus a currency code.

    Amounts are always strings (never JavaScript numbers/floats) to avoid binary floating-point rounding on financial values — pass "10.00", not 10.

    const price: Money = { amount: "10.00", currency: "USDT" };
    
    interface Money {
        amount: string;
        currency: string;
    }
    Index

    Properties

    Properties

    amount: string

    Decimal-string amount, e.g. "10.00" or "0.5". Never a number.

    currency: string

    Uppercase currency/asset code, e.g. "USDT", "USDC", "BTC".