Skip to Content
Blockhash Docs
API referenceLive
GET
/v1/swaps

The latest priced swaps on the chain across every token and venue, newest first, each with both tokens' symbols, its venue and its own maker (trader). Answers are shared for two seconds, so polling faster gains nothing.

Query Parameters

limit?integer
Range1 <= value <= 200
Default100

Response Body

application/json

application/json

curl -X GET "https://example.com/v1/swaps"
{  "swaps": [    {      "id": "string",      "txHash": "string",      "logIndex": 0,      "blockNumber": "string",      "timestamp": 0,      "token": "string",      "tokenSymbol": "string",      "cash": "string",      "cashSymbol": "string",      "pool": "string",      "venue": "string",      "side": "buy",      "amountToken": 0,      "amountCash": 0,      "priceUsd": 0,      "volumeUsd": 0,      "trader": "string",      "sender": "string",      "fee": true,      "deliveredTo": "string",      "solver": true,      "purpose": "liquidity-add"    }  ],  "source": "indexer"}