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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "uniswap_pool_state"
}
}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 |