curl -X POST "https://api.blockdb.io/v1/evm/entities/pools/fee-terms" \
-H "Authorization: Bearer $BLOCKDB_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"chain_id": 1,
"from_block": 19000000,
"to_block": 19010000,
"pool_addresses": [
"88e6a0c2ddd26feeb64f039a2c41296fcb3f564"
],
"limit": 250
}'
{
"meta": {
"chain_id": 1,
"request_window": {
"from_block": 19000000,
"to_block": 19010000
},
"resolved_window": {
"from_block": 19000000,
"to_block": 19010000
},
"filters": {
"pool_addresses": [
"88e6a0c2ddd26feeb64f039a2c41296fcb3f564"
],
"limit": 250,
"cursor": null
}
},
"data": [
{
"pool_uid": "88e6a0c2ddd26feeb64f039a2c41296fcb3f5640000000000000000000000000",
"exchange_id": 1,
"type_id": 201,
"block_number": 19001234,
"block_time": "2025-12-20T12:34:56Z",
"tx_index": 7,
"log_index": 12,
"total_fee": "0.003000000000000000",
"user_fee": "0.003000000000000000",
"protocol_fee": "0.000000000000000000",
"extra_fee": "0.000000000000000000",
"_tracing_id": "0204c0ffee000000000000000000000000000000000000000000000000000001",
"_parent_tracing_ids": [
"0103c0ffee000000000000000000000000000000000000000000000000000001"
],
"_created_at": "2025-12-20T12:35:01Z",
"_updated_at": "2025-12-20T12:35:01Z"
}
],
"cursor": null,
"page_count": 1
}
Entities
Pools · Fee Terms
Read versioned AMM pool fee configuration (total fee and fee-split terms) for joinable pool economics.
POST
/
v1
/
evm
/
entities
/
pools
/
fee-terms
curl -X POST "https://api.blockdb.io/v1/evm/entities/pools/fee-terms" \
-H "Authorization: Bearer $BLOCKDB_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"chain_id": 1,
"from_block": 19000000,
"to_block": 19010000,
"pool_addresses": [
"88e6a0c2ddd26feeb64f039a2c41296fcb3f564"
],
"limit": 250
}'
{
"meta": {
"chain_id": 1,
"request_window": {
"from_block": 19000000,
"to_block": 19010000
},
"resolved_window": {
"from_block": 19000000,
"to_block": 19010000
},
"filters": {
"pool_addresses": [
"88e6a0c2ddd26feeb64f039a2c41296fcb3f564"
],
"limit": 250,
"cursor": null
}
},
"data": [
{
"pool_uid": "88e6a0c2ddd26feeb64f039a2c41296fcb3f5640000000000000000000000000",
"exchange_id": 1,
"type_id": 201,
"block_number": 19001234,
"block_time": "2025-12-20T12:34:56Z",
"tx_index": 7,
"log_index": 12,
"total_fee": "0.003000000000000000",
"user_fee": "0.003000000000000000",
"protocol_fee": "0.000000000000000000",
"extra_fee": "0.000000000000000000",
"_tracing_id": "0204c0ffee000000000000000000000000000000000000000000000000000001",
"_parent_tracing_ids": [
"0103c0ffee000000000000000000000000000000000000000000000000000001"
],
"_created_at": "2025-12-20T12:35:01Z",
"_updated_at": "2025-12-20T12:35:01Z"
}
],
"cursor": null,
"page_count": 1
}
Overview
- Dataset ID:
0212 - Liquidity Pool Fee Terms - Description: Retrieves versioned fee terms for liquidity pools, including the total swap fee fraction (e.g.,
0.003) and optional split fractions across LP/user, protocol, and extra recipients. - CSV Sample: Download
- JSON Sample: Download
Parameters
Range Filters (mutually exclusive)
Starting block number (inclusive) for the query. Use with
to_block.Ending block number (inclusive) for the query. Use with
from_block.Starting timestamp (ISO-8601). If it falls between blocks, the next block after this timestamp is used. Use with
to_timestamp.Ending timestamp (ISO-8601). If it falls between blocks, the last block before this timestamp is used. Use with
from_timestamp.Validation rule:
You must provide either a block range, a time range, or at least one direct selector.
Providing more than one option results in HTTP 400.
Providing none results in HTTP 400.
You must provide either a block range, a time range, or at least one direct selector.
Providing more than one option results in HTTP 400.
Providing none results in HTTP 400.
Pool Selectors
Filter fee terms by exchange IDs. See the DigitalExchange enumeration for supported values.
Filter by BlockDB pool identifiers (
uid from /evm/entities/pools).Filter by pool contract addresses (hex string, 20 bytes, no
0x prefix).Filter by protocol-specific pool identifiers (e.g., Uniswap V4
pool_id).Pagination Controls
Recommended default
250; maximum 1000 to stay under ~10 MB responses.Pagination cursor from a prior call.
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.
Filters echoed from the request (selectors, pagination state, etc.).
Data
Array of pool fee-terms records matching the request.
BlockDB pool identifier (
uid from /evm/entities/pools).Exchange/DEX identifier.
Pool type identifier.
Block height where the fee-terms record is anchored.
Block timestamp joined from the
blocks table for easier aggregation.Zero-based index of the parent transaction within the block.
Position of the log within the transaction.
Total fee fraction (e.g.,
0.003 = 0.30%). Returned as a string to preserve precision.Absolute fee fraction allocated to LPs/users (same units as
total_fee). Returned as a string to preserve precision.Absolute fee fraction allocated to protocol/treasury (same units as
total_fee). Returned as a string to preserve precision.Absolute fee fraction allocated to extra destinations (burn, staking, etc.) (same units as
total_fee). Returned as a string to preserve precision.Row-level lineage hash (hex string, no
0x prefix).Lineage references of immediate parents.
Record creation timestamp (ISO-8601).
Last update timestamp (ISO-8601).
Envelope Fields
Cursor token for pagination.
Number of records returned in
data.curl -X POST "https://api.blockdb.io/v1/evm/entities/pools/fee-terms" \
-H "Authorization: Bearer $BLOCKDB_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"chain_id": 1,
"from_block": 19000000,
"to_block": 19010000,
"pool_addresses": [
"88e6a0c2ddd26feeb64f039a2c41296fcb3f564"
],
"limit": 250
}'
{
"meta": {
"chain_id": 1,
"request_window": {
"from_block": 19000000,
"to_block": 19010000
},
"resolved_window": {
"from_block": 19000000,
"to_block": 19010000
},
"filters": {
"pool_addresses": [
"88e6a0c2ddd26feeb64f039a2c41296fcb3f564"
],
"limit": 250,
"cursor": null
}
},
"data": [
{
"pool_uid": "88e6a0c2ddd26feeb64f039a2c41296fcb3f5640000000000000000000000000",
"exchange_id": 1,
"type_id": 201,
"block_number": 19001234,
"block_time": "2025-12-20T12:34:56Z",
"tx_index": 7,
"log_index": 12,
"total_fee": "0.003000000000000000",
"user_fee": "0.003000000000000000",
"protocol_fee": "0.000000000000000000",
"extra_fee": "0.000000000000000000",
"_tracing_id": "0204c0ffee000000000000000000000000000000000000000000000000000001",
"_parent_tracing_ids": [
"0103c0ffee000000000000000000000000000000000000000000000000000001"
],
"_created_at": "2025-12-20T12:35:01Z",
"_updated_at": "2025-12-20T12:35:01Z"
}
],
"cursor": null,
"page_count": 1
}
Last modified on May 29, 2026
Was this page helpful?
⌘I