hoodkit
    Preparing search index...

    Interface SwapEvent

    A decoded Uniswap v3 swap.

    interface SwapEvent {
        amount0: bigint;
        amount1: bigint;
        blockNumber: bigint;
        buysToken0: boolean;
        liquidity: bigint;
        logIndex: number;
        pool: `0x${string}`;
        price: number;
        recipient: `0x${string}`;
        sender: `0x${string}`;
        spotPrice: number;
        sqrtPriceX96: bigint;
        tick: number;
        transactionHash: `0x${string}`;
        volume0: number;
        volume1: number;
    }
    Index
    amount0: bigint

    token0 delta (signed, raw units): negative = pool paid out token0.

    amount1: bigint

    token1 delta (signed, raw units).

    blockNumber: bigint
    buysToken0: boolean

    true when the trader bought token0 (pool's token0 went out, i.e. amount0 < 0).

    liquidity: bigint
    logIndex: number
    pool: `0x${string}`
    price: number

    Executed price of token0 denominated in token1, decimal-adjusted (human units).

    recipient: `0x${string}`
    sender: `0x${string}`
    spotPrice: number

    Pool spot price after the swap, from sqrtPriceX96 (token0 in token1, human units).

    sqrtPriceX96: bigint
    tick: number
    transactionHash: `0x${string}`
    volume0: number

    |amount0| in human units.

    volume1: number

    |amount1| in human units.