DeFi API
DisclaimerThe cost and speed of transacting with blockchain-based systems are varied and may change significantly at any time, resulting in price and fee fluctuations. The actual prices and fees may vary from the information shown.
The Blockdaemon DeFi API is a unified and standardized interface that enables seamless DeFi integration across 50+ blockchains and protocols. With an exhaustive set of endpoints covering key primitives like DEXs, bridges, and lending platforms, we connect developers, traders, wallets, institutions, and applications to the entire DeFi ecosystem.
Whether you need to perform same-chain token swaps, transfer assets across blockchains, or integrate lending and borrowing capabilities, Blockdaemon provides the tools to support a wide range of decentralized application workflows.
Features
💰 Token Swaps
Swap tokens within or across chains for seamless and optimized asset transfers.
📈 Token Information
Retrieve data about various supported tokens.
🛒 Lending & Borrowing
Integrate lending protocols for liquidity management and yield generation.
🛒 Transaction Status
Monitor and fetch the status of cross-chain transactions.
🔗 Single API Integration
Transact and source data across EVM and Non-EVM chains (e.g., Ethereum, Solana, Bitcoin).
🔒 Security
Private keys never leave your environment; transactions are signed locally.
🏢 Institutional-Scale
Backed by Blockdaemon, a leader in blockchain infrastructure.
Use Cases
✅ Trade - Execute swaps via DEXs like Uniswap, PancakeSwap, Curve, etc., and cross-chain swaps via bridges such as Squid Router, Stargate, AllBridge, KyberSwap, and more.
✅ Lending & Borrowing- Integrate Aave, Compound, Morpho, Pendle, and others for liquidity management and yield strategies.
✅ Portfolio - Track performance across chains by pulling real-time balance data, setting alerts for changes, and automating rebalancing via API triggers.
✅ Build - Create DeFi apps and wallets by adding swap, lending, and reporting capabilities using pre-built APIs.
✅ Data Sourcing - Access price data for tax compliance or risk analysis, monitor liquidity pools, and analyze transaction trends for trading strategies.
Getting Started
To get started and retrieve your API key, follow these steps:
- Log into your Blockdaemon Dashboard at https://app.blockdaemon.com/
- Navigate to the API Suite section and copy your free API Key
- Navigate to the DeFi APIs section and click on any quickstart examples to test your key
Once you have your key, you can immediately begin:
- Generating transactions for DEX swaps or bridge transfers
- Integrating lending and borrowing protocols
- Receiving and signing transaction payloads
- Broadcasting transactions to the network
- Monitoring status across chains
Example cURL request:
curl -X GET "https://svc.blockdaemon.com/defi/v1/[ENDPOINT]" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"Tutorials
Explore step-by-step workflows to integrate DeFi capabilities into your applications:
| Tutorial | Description |
|---|---|
| Same-Chain Swap | Execute token swaps on a single blockchain |
| Cross-Chain Swap | Bridge assets across different blockchains |
| Deposit & Withdraw | Lend and borrow using DeFi lending protocols |
Reference
Supported Protocols
See the complete list of supported blockchains, DEXs, bridges, and lending protocols here.
Need Help?
Contact us through email or our support page for any issues, bugs, or assistance you may need.
Updated 1 day ago
