aftermath-ts-sdk - v3.3.3
    Preparing search index...

    Interface PoolTradeEvent

    Represents a trade event within a pool, indicating coins in/out, final amounts, etc.

    interface PoolTradeEvent {
        amountsIn: bigint[];
        amountsOut: bigint[];
        poolId: string;
        timestamp: number | undefined;
        trader: string;
        txnDigest: string;
        type: string;
        typesIn: string[];
        typesOut: string[];
    }

    Hierarchy (View Summary)

    Index
    amountsIn: bigint[]

    The amounts of each coin type that were spent.

    amountsOut: bigint[]

    The amounts of each output coin.

    poolId: string

    The pool object ID in which the swap occurred.

    timestamp: number | undefined

    Timestamp of the event, if available.

    trader: string

    The address that submitted the swap.

    txnDigest: string

    The transaction digest associated with the event.

    type: string

    A string identifying the Move event type.

    typesIn: string[]

    The array of coin types that were spent in the trade.

    typesOut: string[]

    The coin types that were received.