curl -X POST "https://api.blockdb.io/v1/evm/flash-loans/prints" \
-H "Authorization: Bearer $BLOCKDB_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"chain_id": 1,
"from_block": 19000000,
"to_block": 19000100,
"limit": 50
}'
{
"meta": {
"chain_id": 1,
"request_window": {
"from_block": 19000000,
"to_block": 19000100,
"from_timestamp": null,
"to_timestamp": null
},
"resolved_window": {
"from_block": 19000000,
"to_block": 19000100,
"from_timestamp": null,
"to_timestamp": null
},
"filters": {
"pool_uids": [],
"flash_loan_source_addresses": [],
"token_addresses": [],
"limit": 50,
"cursor": null
}
},
"data": [
{
"block_number": 19000050,
"block_time": "2025-11-11T10:00:00Z",
"tx_index": 12,
"log_index": 3,
"pool_uid": "88e6a0c2ddd26feeb64f039a2c41296fcb3f5640000000000000000000000000",
"exchange_id": 1,
"type_id": 201,
"flash_loan_source": "88e6a0c2ddd26feeb64f039a2c41296fcb3f564",
"token": "c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"amount_borrowed_raw": "1000000000000000000",
"amount_borrowed": "1",
"amount_repaid_raw": "1003000000000000000",
"amount_repaid": "1.003",
"fee_amount_raw": "3000000000000000",
"fee_amount": "0.003",
"_tracing_id": "0305c0ffee000000000000000000000000000000000000000000000000000001",
"_parent_tracing_ids": [
"0103c0ffee000000000000000000000000000000000000000000000000000001"
],
"_created_at": "2025-11-11T10:00:05Z",
"_updated_at": "2025-11-11T10:00:05Z"
}
],
"cursor": null,
"page_count": 1
}
Flash loans
Flash Loan Prints
Read flash loan borrow/repay events (dataset 0305) with raw amounts and pool or vault attribution.
POST
/
v1
/
evm
/
flash-loans
/
prints
curl -X POST "https://api.blockdb.io/v1/evm/flash-loans/prints" \
-H "Authorization: Bearer $BLOCKDB_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"chain_id": 1,
"from_block": 19000000,
"to_block": 19000100,
"limit": 50
}'
{
"meta": {
"chain_id": 1,
"request_window": {
"from_block": 19000000,
"to_block": 19000100,
"from_timestamp": null,
"to_timestamp": null
},
"resolved_window": {
"from_block": 19000000,
"to_block": 19000100,
"from_timestamp": null,
"to_timestamp": null
},
"filters": {
"pool_uids": [],
"flash_loan_source_addresses": [],
"token_addresses": [],
"limit": 50,
"cursor": null
}
},
"data": [
{
"block_number": 19000050,
"block_time": "2025-11-11T10:00:00Z",
"tx_index": 12,
"log_index": 3,
"pool_uid": "88e6a0c2ddd26feeb64f039a2c41296fcb3f5640000000000000000000000000",
"exchange_id": 1,
"type_id": 201,
"flash_loan_source": "88e6a0c2ddd26feeb64f039a2c41296fcb3f564",
"token": "c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"amount_borrowed_raw": "1000000000000000000",
"amount_borrowed": "1",
"amount_repaid_raw": "1003000000000000000",
"amount_repaid": "1.003",
"fee_amount_raw": "3000000000000000",
"fee_amount": "0.003",
"_tracing_id": "0305c0ffee000000000000000000000000000000000000000000000000000001",
"_parent_tracing_ids": [
"0103c0ffee000000000000000000000000000000000000000000000000000001"
],
"_created_at": "2025-11-11T10:00:05Z",
"_updated_at": "2025-11-11T10:00:05Z"
}
],
"cursor": null,
"page_count": 1
}
Overview
- Dataset ID:
0305 - Flash Loan Prints - Description: One row per borrowed token per on-chain flash loan event (V2-style flash swap, V3 Flash event, Balancer V2 Vault, etc.).
pool_uidis NULL for vault-level events not tied to a single pool. - CSV Sample: Download
- JSON Sample: Download
Parameters
Range filters (mutually exclusive)
Starting block number (inclusive). Use with
to_block.Ending block number (inclusive). Use with
from_block.Starting timestamp (ISO-8601). Use with
to_timestamp.Ending timestamp (ISO-8601). Use with
from_timestamp.Provide either a block range or a time range or direct selectors (
Do not mix block and timestamp ranges. Invalid combinations return HTTP 400.
pool_uids, flash_loan_source_addresses, and/or token_addresses).Do not mix block and timestamp ranges. Invalid combinations return HTTP 400.
Direct selectors
Filter to pool UIDs (32-byte hex, no
0x). Omitted or null pool_uid rows (vault-level) require other selectors if you need them.Emitter contracts (20-byte hex, no
0x): pool or vault that emitted the event.Borrowed token addresses (20-byte hex, no
0x).Pagination
Recommended default
250; maximum 1000 to stay under ~10 MB responses.Opaque pagination cursor from a previous response.
Decimals-Adjusted Amounts
Off by default. When set to
true, the response includes data.amount_borrowed, data.amount_repaid, and data.fee_amount (decimals-adjusted, may be null) alongside the raw integer fields. Enabling it adds a per-request ERC-20 decimals lookup (extra join) that increases latency, so it is opt-in; when omitted or false, those fields are returned as null and only the always-present *_raw fields are populated.Response fields
Meta
Echo of request metadata applied to the response.
EVM chain ID echoed from the request.
Pure echo of the window you sent (
from_block/to_block/from_timestamp/to_timestamp); unset bounds are null.The concrete window the query actually executed against, after resolving the request. For a block range on a time-bucketed endpoint (OHLC/VWAP/VWAP-aggregate/fiat VWAP),
from_timestamp/to_timestamp hold the resolved timestamp window (and from_block/to_block echo your request). For a time range on a block-keyed endpoint, from_block/to_block hold the resolved block range (and the timestamps echo your request). null for selector-only requests (no window). No extra database work is done — these are the values the query already computed.Resolved/echoed start block of the executed window.
Resolved/echoed end block of the executed window.
Resolved/echoed start timestamp (ISO-8601) of the executed window.
Resolved/echoed end timestamp (ISO-8601) of the executed window.
Echo of selectors and pagination from the request.
Data
Flash loan print records matching the request.
Block height of the event.
UTC timestamp of the block.
Transaction index within the block.
Log index within the transaction.
32-byte internal pool id (hex), or
null for vault-level flash loans.Present when
pool_uid is set; otherwise null.Pool type id when
pool_uid is set; otherwise null.20-byte address of the contract that emitted the event (hex, no
0x).20-byte ERC-20 token borrowed in this row (hex, no
0x).Raw amount borrowed as a
uint256 integer in the borrowed token’s smallest denomination. String-encoded.Decimals-adjusted form of
amount_borrowed_raw (resolved against token). null when decimals are unknown or include_adjusted_amounts=false.Raw amount repaid (borrowed + fee) as a
uint256 integer in the borrowed token’s smallest denomination.Decimals-adjusted form of
amount_repaid_raw. Same null semantics as amount_borrowed.Raw fee:
amount_repaid_raw − amount_borrowed_raw, in the borrowed token’s smallest denomination.Decimals-adjusted form of
fee_amount_raw. Same null semantics as amount_borrowed.Row tracing id (hex, no
0x).Parent tracing ids.
Record creation timestamp (ISO-8601).
Record last update timestamp (ISO-8601).
Envelope
Pagination cursor.
Number of rows in
data.curl -X POST "https://api.blockdb.io/v1/evm/flash-loans/prints" \
-H "Authorization: Bearer $BLOCKDB_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"chain_id": 1,
"from_block": 19000000,
"to_block": 19000100,
"limit": 50
}'
{
"meta": {
"chain_id": 1,
"request_window": {
"from_block": 19000000,
"to_block": 19000100,
"from_timestamp": null,
"to_timestamp": null
},
"resolved_window": {
"from_block": 19000000,
"to_block": 19000100,
"from_timestamp": null,
"to_timestamp": null
},
"filters": {
"pool_uids": [],
"flash_loan_source_addresses": [],
"token_addresses": [],
"limit": 50,
"cursor": null
}
},
"data": [
{
"block_number": 19000050,
"block_time": "2025-11-11T10:00:00Z",
"tx_index": 12,
"log_index": 3,
"pool_uid": "88e6a0c2ddd26feeb64f039a2c41296fcb3f5640000000000000000000000000",
"exchange_id": 1,
"type_id": 201,
"flash_loan_source": "88e6a0c2ddd26feeb64f039a2c41296fcb3f564",
"token": "c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"amount_borrowed_raw": "1000000000000000000",
"amount_borrowed": "1",
"amount_repaid_raw": "1003000000000000000",
"amount_repaid": "1.003",
"fee_amount_raw": "3000000000000000",
"fee_amount": "0.003",
"_tracing_id": "0305c0ffee000000000000000000000000000000000000000000000000000001",
"_parent_tracing_ids": [
"0103c0ffee000000000000000000000000000000000000000000000000000001"
],
"_created_at": "2025-11-11T10:00:05Z",
"_updated_at": "2025-11-11T10:00:05Z"
}
],
"cursor": null,
"page_count": 1
}
Last modified on May 29, 2026
Was this page helpful?
⌘I