Track DeFi events, protocol blocks, and historical data with a unified API.
DeFi Events & Blocks
The Tatum DeFi API gives developers access to on-chain DeFi activity, including events, blocks, and time-based snapshots.
It’s designed for building real-time dashboards, monitoring DeFi protocols, and enabling analytics on smart contract events.
Key Benefits of the DeFi API
- Real-time DeFi event monitoring – Stay updated with liquidity, swaps, lending, and staking events.
- Block-level visibility – Retrieve complete DeFi blocks or track the latest available block.
- Time-based queries – Fetch block data at a specific timestamp for auditing and compliance.
- Cross-chain DeFi coverage – Works with multiple blockchains supported by Tatum.
- Optimized for analytics – Build dashboards and monitoring tools at scale.
DeFi API Endpoints
The API offers four core endpoints depending on your use case.
Choose the method that best fits your application.
Get DeFi Events
GET /v4/defi/events
Retrieve on-chain DeFi events such as swaps, liquidity additions, lending, and staking.
Explore Docs →
Get DeFi Blocks
GET /v4/defi/blocks
Fetch historical DeFi block data.
Explore Docs →
Get Latest DeFi Block
GET /v4/defi/block/latest
Retrieve the most recent DeFi block available.
Explore Docs →
Get DeFi Block by Time
GET /v4/defi/block/time
Retrieve DeFi block data based on a specific timestamp.
Explore Docs →
DeFi API FAQs
Can I monitor DeFi events in real time?
Yes. The Get DeFi Events endpoint is designed to retrieve the latest protocol events such as swaps, liquidity changes, or staking actions.
Can I query historical DeFi blocks?
Yes. The API allows you to query any past DeFi block either directly by block number or based on a timestamp.
Use Cases for Developers
- Power DeFi dashboards with real-time swaps, liquidity pools, and lending data.
- Provide analytics platforms with complete DeFi block histories.
- Enable compliance & auditing through timestamp-based DeFi block lookups.
- Build alerting & monitoring systems for DeFi protocols.