Skip to main content
Deframe API is a comprehensive DeFi aggregation platform that enables seamless cross-chain and same-chain transactions for yield strategies, token swaps, and DeFi protocol integrations.

Key Features

Execute token swaps across different blockchain networks with automatic bridge routing and transaction monitoring.
  • Supported chains: Ethereum, Base, Optimism, Arbitrum, Solana, Polygon, Gnosis, Bitcoin
  • Multiple bridge providers: TeleSwap, Mayan, Symbiosis
  • Real-time transaction status tracking
  • Webhook notifications for status updates
Optimal routing for swaps within the same blockchain network.
  • Best price aggregation across DEXs
  • Gas-optimized routes
  • Sub-5 minute quote validity
  • Support for ERC-20 and native tokens
Access to multiple DeFi lending and staking protocols.
  • Protocols: Aave, Morpho, Lido, Compound, and more
  • Automated APY tracking
  • Easy deposit and withdrawal
  • Portfolio position monitoring
Monitor DeFi positions and yields across multiple protocols.
  • Real-time balance updates
  • Earnings tracking
  • Multi-protocol aggregation
  • Historical transaction data

What Can You Build?

DeFi Aggregator

Build a frontend that aggregates multiple DeFi protocols and provides users with the best yield opportunities.

In-App Yield

Offer top DeFi strategies directly in your wallet or application.

Cross-Chain Bridge

Integrate cross-chain swaps into your wallet or application.

Portfolio Dashboard

Track user positions across multiple chains and protocols in one place.

Supported Networks

Ethereum

Swaps and yield strategies
https://mintcdn.com/pods-322144f0/7jezKt0SVoazZ1ma/images/networks/base.svg?fit=max&auto=format&n=7jezKt0SVoazZ1ma&q=85&s=15bb56757a1286150e3c5f3e07b75e19

Base

Swaps and yield strategies
https://mintcdn.com/pods-322144f0/7jezKt0SVoazZ1ma/images/networks/optimism.svg?fit=max&auto=format&n=7jezKt0SVoazZ1ma&q=85&s=e917afb4f16fb22fc83b3451ec452f04

Optimism

Swaps and yield strategies
https://mintcdn.com/pods-322144f0/7jezKt0SVoazZ1ma/images/networks/arbitrum.svg?fit=max&auto=format&n=7jezKt0SVoazZ1ma&q=85&s=68a6dea21de8efb21fada4315d2bf662

Arbitrum

Swaps and yield strategies
https://mintlify.s3.us-west-1.amazonaws.com/pods-322144f0/images/networks/solana.svg

Solana

Swaps and yield strategies
https://mintcdn.com/pods-322144f0/7jezKt0SVoazZ1ma/images/networks/polygon.svg?fit=max&auto=format&n=7jezKt0SVoazZ1ma&q=85&s=11f5769cf45ce3efc3ab9543f71cc7e2

Polygon

Cross-chain bridge support
https://mintcdn.com/pods-322144f0/7jezKt0SVoazZ1ma/images/networks/gnosis.svg?fit=max&auto=format&n=7jezKt0SVoazZ1ma&q=85&s=5ed35e443ffa1bdd2137827079deb7d0

Gnosis

Cross-chain bridge support
https://mintlify.s3.us-west-1.amazonaws.com/pods-322144f0/images/networks/bitcoin.svg

Bitcoin

Cross-chain bridge support

Quick Example

Here’s a simple same-chain swap in just a few lines:
import axios from 'axios'

const deframe = axios.create({
  baseURL: 'https://api.deframe.io',
  headers: { 'x-api-key': 'your-api-key' }
})

// 1. Get quote
const { data: { quote } } = await deframe.get('/swap/quote', {
  params: {
    originChain: 'ethereum',
    destinationChain: 'ethereum',
    tokenIn: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', // USDC
    tokenOut: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2', // WETH
    amountIn: '1000000000' // 1000 USDC
  }
})

// 2. Generate bytecode
const { data: bytecode } = await deframe.post('/swap/bytecode', {
  quoteId: quote.quoteId,
  originAddress: walletAddress,
  destinationAddress: walletAddress,
  rawQuote: quote.rawQuote
})

// 3. Execute transaction (using your wallet)
await wallet.sendTransaction(bytecode.transactionData[0])

Next Steps

1

Get API Key

Sign up and get your API key from the Deframe Dashboard
2

Follow Quickstart

Complete your first API call in 5 minutes
3

Explore Guides

Learn about swaps and yield strategies
4

Integrate

Use our code examples to integrate into your app

Support & Community

Need help? Reach out to our support team at support@deframe.io