Derive an Ekubo pool ID
derive_pool_idPack or accept an exact PoolKey config and derive pool_id = keccak256(abi.encode(PoolKey)). The uint64 Q64 fee is string-only so JavaScript cannot silently round it.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pool_key": "<pool_key>"
},
"name": "derive_pool_id"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pool_key | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pool_id | No | ||
| pool_key | No | ||
| decoded_config | No | ||
| pool_id_decimal | No |