---
updatedAt: 2026-07-03T15:50:56.000Z
---

Fetch the complete documentation index at: https://docs.blockdaemon.com/llms.txt. Use this file to discover all available pages before exploring further. Append .md to any documentation page URL to get its markdown version.

# DeFi API

> ❗️ Disclaimer
>
> The 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

<HTMLBlock>{`
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Card Group</title>
  <style>
    .card-group {
      display: grid;
      grid-template-columns: repeat(3, 2fr);
      gap: 16px;
      max-width: 800px;
      margin: 0 auto;
    }

    .card {
      border: 1px solid #ccc;
      border-radius: 12px;
      padding: 16px;
      background-color: #fff;
      box-shadow: 0 4px 8px rgba(0,0,0,0.05);
      color: #000;
      transition: background-color 0.3s ease, color 0.3s ease;
      cursor: pointer;
    }

    @media (prefers-color-scheme: dark) {
      .card {
        background-color: #fff;
        color: #000;
      }
    }

    .card h3 {
      margin-top: 0;
      font-size: 1rem; /* Smaller title */
    }

    .card p {
      margin: 8px 0;
      font-size: 0.85rem; /* Smaller paragraph text */
    }
  </style>
</head>
<body>

<div class="card-group">
  <div class="card">
    <h3>💰 Token Swaps</h3>
    <p>Swap tokens within or across chains for seamless and optimized asset transfers.</p>
  </div>
  <div class="card">
    <h3>📈 Token Information</h3>
    <p>Retrieve data about various supported tokens.</p>
  </div>
  <div class="card">
    <h3>🛒 Lending & Borrowing</h3>
    <p>Integrate lending protocols for liquidity management and yield generation.</p>
  </div>
  <div class="card">
    <h3>🛒 Transaction Status</h3>
    <p>Monitor and fetch the status of cross-chain transactions.</p>
  </div>
   <div class="card">
    <h3>🔗 Single API Integration</h3>
    <p>Transact and source data across EVM and Non-EVM chains (e.g., Ethereum, Solana, Bitcoin).</p>
  </div>
   <div class="card">
    <h3>🔒 Security</h3>
    <p>Private keys never leave your environment; transactions are signed locally.</p>
  </div>
   <div class="card">
    <h3>🏢  Institutional-Scale</h3>
    <p>Backed by Blockdaemon, a leader in blockchain infrastructure.</p>
  </div>
</div>

</body>
</html>
`}</HTMLBlock>

## Use Cases

:white\_check\_mark: **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.

:white\_check\_mark: **Lending & Borrowing**- Integrate Aave, Compound, Morpho, Pendle, and others for liquidity management and yield strategies.

:white\_check\_mark: **Portfolio** - Track performance across chains by pulling real-time balance data, setting alerts for changes, and automating rebalancing via API triggers.

:white\_check\_mark: **Build** - Create DeFi apps and wallets by adding swap, lending, and reporting capabilities using pre-built APIs.

:white\_check\_mark: **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:

1. Log into your Blockdaemon Dashboard at <https://app.blockdaemon.com/>
2. Navigate to the API Suite section and copy your free API Key
3. 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:

```bash
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](https://docs.blockdaemon.com/docs/defi-api-execute-a-local-swap)        | Execute token swaps on a single blockchain   |
| [Cross-Chain Swap](https://docs.blockdaemon.com/docs/defi-api-execute-a-cross-chain-swap) | Bridge assets across different blockchains   |
| [Deposit & Withdraw](https://docs.blockdaemon.com/docs/lend-and-borrow-defi)              | Lend and borrow using DeFi lending protocols |

## Reference

### Supported Protocols

See the complete list of supported blockchains, DEXs, bridges, and lending protocols [here](https://docs.blockdaemon.com/docs/defi-api-supported-protocols).

## Need Help?

Contact us through email or our support page for any issues, bugs, or assistance you may need.