Get a single trade by transaction hash
Trades Data
Get Token Trade by Transaction
Retrieve a specific trade by transaction hash and blockchain. Returns the first trade found in the transaction.
GET
Get a single trade by transaction hash
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 |
Step-by-Step Tutorial and Video Walkthrough
- Check out the guide: Here
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
- swapRecipient: The actual beneficiary of the swap - the wallet that receives the output tokens. Critical for Account Abstraction (AA) scenarios.
nullif not available. - blockchain: Blockchain name
- transactionHash: Transaction hash
- marketAddress: Pool/market address where trade occurred
- marketAddresses: Array of all market addresses involved (for multi-hop swaps)
- preBalanceBaseToken: Pre-swap balance of base token (raw string, nullable)
- preBalanceQuoteToken: Pre-swap balance of quote token (raw string, nullable)
- postBalanceBaseToken: Post-swap balance of base token (raw string, nullable)
- postBalanceQuoteToken: Post-swap balance of quote token (raw string, nullable)
- 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) - walletMetadata: Enriched wallet metadata (entity name, logo, labels) from known wallets database.
nullif not available. - baseToken: Full token details for the base token (includes all fields from the Token Details schema)
- quoteToken: Full token details for the quote token
- platform: Trading platform/aggregator used for the trade. Object with
id,name,logofields.nullif not available. - totalFeesUSD: Total fees paid in USD (sum of gas, platform, and MEV fees)
- gasFeesUSD: Gas fees paid in USD
- platformFeesUSD: Platform/aggregator fees paid in USD (e.g., Axiom, GMGN, Trojan)
- mevFeesUSD: MEV/priority fees paid in USD
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