Skip to main content
Avantis is a perpetual trading protocol on Base. The API exposes a single vault (avUSDC) where depositors earn yield from trading fees.

Supported chains

Chain IDNetwork
8453Base

Position types

Type identifierDescriptionKey fields
avantis-avusdcavUSDC vault depositbalance, balanceUsd, apy, exchangeRate, vaultMetrics

walletPositions example

query {
  walletPositions(inputs: [
    { protocol: "avantis", chainId: 8453, walletAddress: "0x742d35Cc6634C0532925a3b8D4C9db96C4b4d8b6" }
  ]) {
    data {
      ... on AvantisWalletPositions {
        protocol walletAddress chainId
        vaultPosition {
          type vaultAddress
          underlyingAsset { address symbol decimals }
          balance balanceUsd apy exchangeRate
          vaultMetrics { totalAssets totalSupply decimals }
        }
      }
    }
    errors { protocol chainId walletAddress error { code message retryable } }
  }
}

Notes

  • vaultPosition is null when the wallet has no position or when querying a non-supported chain
  • APY is a decimal (e.g., 0.0725 = 7.25%)