Messages
Swaps
Swap Fees
Subscribe to real-time per-swap fee accounting for pool economics and yield modeling.
WSS
Documentation Index
Fetch the complete documentation index at: https://docs.blockdb.io/llms.txt
Use this file to discover all available pages before exploring further.
Overview
- Dataset ID:
0303 - Liquidity Pool Swap Fees - Description: Per-swap fee accounting: executed swap sizes plus computed fee amounts using the pool’s fee terms (
blockdb_evm.b0212_liquidity_pools_fee_terms_v1). - Sample: Hugging Face Sample
Subscription Parameters
Filter updates to specific BlockDB pool identifiers.
Filter by input token addresses (hex strings, 20 bytes, no
0x prefix).Message Fields
BlockDB pool identifier.
Exchange/DEX identifier.
Pool type identifier.
Block height where the swap occurred.
Block time (ISO-8601).
Transaction index.
Log index.
Address of the input token.
Address of the output token.
Token address the fee is denominated in.
Executed input amount (raw units, integer string).
Executed output amount (raw units, integer string).
Total fee amount in
fee_token units.User/LP share of fees (raw units, nullable).
Protocol share of fees (raw units, nullable).
Extra destination share of fees (raw units, nullable).
Row-level lineage hash for correlation.
Parent lineage ids (hex).
Record creation time (ISO-8601).
Record last update time (ISO-8601).
Subscription Example
Response Example
Messages
Last modified on April 6, 2026