Query Details
This endpoint retrieves a single trade by its transaction hash on a specific blockchain.| Parameter | Required | Description |
|---|---|---|
blockchain | Yes | Blockchain identifier (e.g., “base”, “ethereum”, “bsc”) |
transactionHash | Yes | Transaction hash of the trade |
Response Overview
The response contains a single trade object with the following fields:- id: Unique swap identifier
- operation: Swap operation type (regular, deposit, withdrawal)
- type: Trade type (
buy,sell,deposit, orwithdrawal) - baseTokenAmount: Amount of base token traded (formatted)
- baseTokenAmountRaw: Amount of base token traded in smallest units
- baseTokenAmountUSD: USD value of base token traded
- quoteTokenAmount: Amount of quote token traded (formatted)
- quoteTokenAmountRaw: Amount of quote token traded in smallest units
- quoteTokenAmountUSD: USD value of quote token traded
- date: Trade timestamp in milliseconds
- swapSenderAddress: Address that executed the swap
- transactionSenderAddress: Transaction originator address
- blockchain: Blockchain name
- transactionHash: Transaction hash
- marketAddress: Pool/market address where trade occurred
- baseTokenPriceUSD: Base token price in USD at execution
- quoteTokenPriceUSD: Quote token price in USD at execution
- labels: Array of wallet labels (e.g.,
smart-money,pro-trader)
Usage Examples
Query a trade by transaction hash (GET):Sample Response
Error Responses
404 - Trade not found:Use Cases
- Transaction monitoring: Track specific trades after detecting a transaction on-chain
- Trading analysis: Analyze individual trades with full context
- User history: Show trade details when a user clicks on a transaction in their wallet
- Price discovery: Get the exact execution price for a specific trade
- Compliance: Retrieve detailed trade information for auditing purposes
Query Parameters
Blockchain name or chain ID
Transaction hash
Response
200 - application/json
Token trade response