Flash loans taken inside a transaction
Open the transaction in TraceFast →
The flash loans taken inside one transaction from the lenders TraceFast indexes — Aave V2 and V3 (its official markets), Balancer V2 and Uniswap V3 flash — in log order: the protocol, the lending contract, the borrower and initiator where the event states them, the token and the raw amount. Some Aave V2 forks are listed too, under their own name (radiant, aave_fork): they are not Aave. An empty list means none FROM THESE LENDERS (a Uniswap V2 flash swap, a Maker, Morpho, Euler or Balancer V3 flash loan is not covered), and is stated only once the index has reached the transaction's block; before that (usually under half an hour) the method answers 422 coverage_gap with the bound, never an empty list. Pass tokenAddress to get_token for the decimals.
GET https://tracefast.xyz/api/v1/chains/1/transactions/{hash}/flash-loans
| Parameter | In | Type | Notes |
|---|---|---|---|
hash | path | string | Transaction hash, 0x-prefixed, 64 hex characters, any case. |
Access — an API key on the Investigation plan or higher (plans), or no key at all: pay per call with x402 at the same path on https://mpp.tracefast.xyz/api/v1, at the price its 402 states. As a tool for AI agents: get_transaction_flash_loans on the MCP server. Stable — see stability.
chains/1 is a literal: other chain ids answer 404 chain_not_supported. An unknown query parameter is refused rather than ignored.
Response
200 application/json. Lists in the example are cut to two entries.
{
"data": {
"chainId": 1,
"hash": "0x6bb3103eec4ca8f4a324bbab71dc84f533af7e6be11ab8b13d0d10333bb9abc5",
"flashLoans": []
},
"meta": {
"chain": "ethereum",
"timestamp": 1794918389544,
"cached": false,
"asOfBlock": 25920000,
"docs": "https://docs.tracefast.xyz/api/transaction-flash-loans"
}
}data
| Field | Meaning |
|---|---|
chainId | Chain id. 1 is Ethereum mainnet. |
flashLoans | The flash loans, in log order. Empty means none from the indexed lenders. |
hash | The transaction, lowercase and 0x-prefixed. |
data.flashLoans[]
| Field | Meaning |
|---|---|
amountRaw | The amount in the token's smallest unit, decimal string. |
borrower | Who received the loan, lowercase and 0x-prefixed. Absent when the event does not state it. |
initiator | Who initiated the loan, lowercase and 0x-prefixed. Absent when the event does not state it. |
logIndex | The log that recorded it: its index in the block. |
poolAddress | The contract that lent (the pool or vault emitting the flash-loan event). |
protocol | The lender as the index names it: aave (versions v2, v2_amm, v2_arc, v3), balancer (v2), uniswap (v3, a pool's flash), pancakeswap (v3), and Aave V2 forks under their own names — radiant, aave_fork (not Aave). Other values may be added. Absent when the event does not state it. |
protocolVersion | The lender's version, for example v2 or v3. Absent when not stated. |
tokenAddress | The token lent. Absent when the event does not state it. |
meta is the same envelope on every method — see conventions.
Errors
| Status | When |
|---|---|
| 400 | bad_request: malformed hash, or an unknown query parameter |
| 404 | not_found: no transaction with this hash is known; chain_not_supported; or an unknown path |
| 422 | block_not_available, reason: coverage_gap: not computed yet for this block (maxAvailableBlock); retry later. Also coverage_gap for an unknown hash while a range of the chain is temporarily unavailable |
| 503 | service_unavailable: temporarily unavailable; retry; or service_degraded: who is calling could not be established right now; retry after Retry-After. |
Malformed input, unknown parameters and the key check's 401/403/429/503 are the same for every method — see conventions and API keys.
Related pages
- One transaction
- Transaction events
- Why it reverted
- Execution trace
- All API methods — every method on one page
- Conventions — requests, responses, errors and pagination
Last updated 19 Nov 2026, 11:46 UTC · verified against TraceFast v1.0.332 · Markdown