The DEX liquidity added and removed in a transaction
get_transaction_liquidity_eventsEvery DEX liquidity event in one transaction, in log order — the pool, its protocol and version, the provider the event names, action (add or remove) and the event as the pool names it, and each token leg: the token with its declared symbol and decimals (verbatim, not verified), the amount raw and in token units, whether it went into or out of the pool, and its USD value and price where it could be priced, with how it was valued. An empty list means no liquidity event happened in the transaction. The events are written behind the chain: a transaction they do not reach yet is refused (block_not_available, details.reason coverage_gap, with details.maxAvailableBlock) — retry later, it says nothing about the transaction; an unknown hash is refused (not_found). Uniswap v4 liquidity events are not recorded. Paged by bytes: about 112 KiB a page, a whole event at a time; hasMore says more follow — pass nextCursor back as cursor. An event lists at most 8 legs (legCount when it has more). Use it to see what liquidity a transaction added or removed. Not for every event it emitted: use get_transaction_events. Not for one pool's events over a window: use get_pool_liquidity_events. Not for the flash loans it took: use get_transaction_flash_loans.
Arguments: hash; optional cursor. chain_id defaults to 1 (Ethereum mainnet, the only chain served). Paged: pass data.nextCursor back as cursor, with the same other arguments, until it is absent — no nextCursor means the list is complete, even when the page is exactly limit long. Freshness: facts of a mined transaction from an index written in batches that trail the newest blocks. For a transaction above the indexed range, what is found is returned and may still be incomplete for a short while, and an empty answer is refused (block_not_available, with details.maxAvailableBlock) — retry later. meta.asOfBlock is the transaction's block. meta.cached is true when the answer came from the TraceFast response cache (refreshed within minutes); meta.timestamp is when it was produced, in Unix milliseconds.
Minimum plan: Investigation. Rate class: core. Documentation: https://docs.tracefast.xyz/api/transaction-liquidity-events
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"hash": "<hash>"
},
"name": "get_transaction_liquidity_events"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hash | Yes | The transaction hash, `0x` + 64 hex, any case. | |
| cursor | No | `data.nextCursor` of this tool's previous answer, passed back unchanged with the same other arguments. Opaque; absent on the first call. | |
| chain_id | No | Chain id. Only 1 (Ethereum mainnet) is served; the default. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||