Skip to main content
TVL: ~$2M | Type: V4 Hooks AMM | Docs: docs.uniswap.org/contracts/v4

Overview

Uniswap V4 introduces a singleton PoolManager architecture and a hooks system, allowing custom logic to execute at key lifecycle points (before/after swap, before/after LP operations). All pools are managed by a single contract, reducing gas costs via EIP-1153 transient storage. Pools are identified by a V4PoolKey struct instead of a simple address.

Types

V4PoolKey

currency0 must always be the lexicographically lower address. The SDK handles sorting automatically in all helper functions.

Functions

getUniswapV4Pools()

Returns all initialized Uniswap V4 pools on Monad. Returns

getUniswapV4PoolState()

Reads the full state of a specific V4 pool by its pool key. Parameters Returns

getUniswapV4Price()

Returns the spot price for a pool key. Parameters Returns number. price of currency0 denominated in currency1.

simulateUniswapV4Swap()

Simulates a V4 swap without executing a transaction. Parameters Returns

computeV4PoolId()

Computes the deterministic 32-byte pool ID from a V4PoolKey. Parameters Returns Hex. 32-byte keccak256 pool ID.

Contract Addresses