getSwaps
Retrieve recent swap events for a specific pool on Ethereum, with optional filters by block range or transaction limit, to support cryptocurrency research and automation.
Instructions
Fetch recent swap events for a given pool, optionally filtered by block range.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
endBlock | No | ||
limit | No | ||
poolId | Yes | ||
startBlock | No |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"endBlock": {
"type": "string"
},
"limit": {
"default": 50,
"maximum": 1000,
"minimum": 1,
"type": "integer"
},
"poolId": {
"type": "string"
},
"startBlock": {
"type": "string"
}
},
"required": [
"poolId"
],
"type": "object"
}