coin-gecko
Get events within a block range
Get events within a specified block range.
get/coin-gecko/terminal/events
Request
- Base URLhttps://swap-backend.stage.defi.ovh.gala.com
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
fromBlocknumber required
Example:100
The starting block number (inclusive)
toBlocknumber required
Example:200
The ending block number (inclusive)
Response
Example response
{
"events": [
{
"txnId": "synthetic-transaction-id",
"block": {
"blockNumber": 10,
"blockTimestamp": 1780000000
},
"maker": "client|synthetic-wallet",
"pairId": "synthetic-pool-id",
"eventType": "swap",
"asset0In": "10",
"asset1In": "0",
"asset0Out": "0",
"asset1Out": "9.5",
"priceNative": "0.95",
"reserves": {
"asset0": "100",
"asset1": "250"
}
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.