OMPX JavaScript SDK
    Preparing search index...

    Interface Money

    Unified monetary value representation

    interface Money {
        currency: string;
        decimals: number;
        units: bigint;
        value: string;
    }
    Index

    Properties

    currency: string

    Currency code or token contract address, e.g. "usd" or "0x20c0..."

    decimals: number

    Token decimal places, typically 6 for USDC-like stablecoins

    units: bigint

    Smallest unit representation, e.g. 10000n for 0.01 USDC (6 decimals)

    value: string

    Human-readable amount, e.g. "0.01"