uniswap_pool_state
Retrieve current sqrt price, tick, protocol fee, and LP fee from a Uniswap v4 pool. Accepts a poolId or derives one from a PoolKey.
Instructions
Read a v4 pool's slot0 via StateView: current sqrt price, tick, protocol fee and LP fee. Accepts a poolId, or a PoolKey to derive one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fee | No | ||
| hooks | No | 0x0000000000000000000000000000000000000000 | |
| poolId | No | 32-byte poolId; omit to derive from a PoolKey | |
| currency0 | No | ||
| currency1 | No | ||
| decimals0 | No | ||
| decimals1 | No | ||
| tickSpacing | No |