getSwaps
Fetch recent swap events from Ethereum liquidity pools to analyze trading activity and monitor DeFi transactions.
Instructions
Fetch recent swap events for a given pool, optionally filtered by block range.
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": {
"poolId": "<poolId>"
},
"name": "getSwaps"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| poolId | Yes | ||
| startBlock | No | ||
| endBlock | No | ||
| limit | No |