Chain · ID 8453

Base DeFi API

Base is Coinbase's L2 with strong DeFi growth. The definitiv API covers lending, vaults, perpetuals, and tokenized strategies on Base.

7 supported protocols

Morpho logo

Morpho

Permissionless lending with curated vaults and isolated markets

Aave logo

Aave

Lending and borrowing with health factor monitoring

Pendle logo

Pendle

Yield trading with Principal Tokens, Yield Tokens, and LP positions

Fluid logo

Fluid

Lending and CDP vaults with smart collateral and debt

Compound logo

Compound

Lending protocol with per-market base assets and collateral

Avantis logo

Avantis

Perpetual trading vault on Base

Midas logo

Midas

Tokenized institutional investment strategies

Example query

Query the first 3 of 7 protocols on Base in a single request.

base-positions.graphql
query {
  walletPositions(inputs: [
    { protocol: "morpho", chainId: 8453, walletAddress: "0x742d35Cc6634C0532925a3b8D4C9db96C4b4d8b6" }
    { protocol: "aave", chainId: 8453, walletAddress: "0x742d35Cc6634C0532925a3b8D4C9db96C4b4d8b6" }
    { protocol: "pendle", chainId: 8453, walletAddress: "0x742d35Cc6634C0532925a3b8D4C9db96C4b4d8b6" }
  ]) {
    data {
      ... on MorphoWalletPositions {
        protocol
        walletAddress
      }
      ... on AaveWalletPositions {
        protocol
        walletAddress
      }
      ... on PendleWalletPositions {
        protocol
        walletAddress
      }
    }
    errors { protocol error { code message } }
  }
}
Try in Playground →

Other chains

Ethereum7 protocolsArbitrum5 protocolsOptimism3 protocols