# Spraay DeFi Positions Lookup

> Spraay DeFi Positions Lookup is a paid API for AI agents from gateway.spraay.app, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-13).

Fetches on-chain DeFi positions for a wallet address across Aave V3, Compound V3, and Aerodrome on Base chain

## Facts

- Endpoint: GET https://gateway.spraay.app/api/v1/defi/positions
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gateway-spraay-app-ca5c88c6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cTm4dPdBMsiPS25ex7rb0

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability gateway-spraay-app-ca5c88c6
```

Example prompt: What DeFi positions does wallet 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 have open right now — check Aave V3, Compound V3, and Aerodrome on Base?

## When to prefer this

Use this endpoint when you need to aggregate a wallet's DeFi positions specifically across Aave V3, Compound V3, and Aerodrome on the Base network in a single call. Prefer this over manual RPC calls or protocol-specific APIs when you want a unified view of lending, borrowing, and liquidity positions for any address.

## Known failure modes

- Missing required 'address' query param returns a validation error
- Invalid or malformed wallet address returns an error or empty positions array
- Unsupported chain identifier may return no results or an error
- Payment not included or insufficient USDC (x402) returns 402 Payment Required
- Network or RPC unavailability may cause timeouts or partial data

## How this service works

On-chain DeFi positions across Aave V3, Compound V3, Aerodrome on Base.

## Output

Returns a list of on-chain DeFi positions for the queried wallet address, including position details across Aave V3, Compound V3, and Aerodrome protocols on Base, along with total position count.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "chain": "base-mainnet",
   "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
  }
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "address"
     ],
     "properties": {
      "chain": {
       "type": "string"
      },
      "address": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "address": {
       "type": "string"
      },
      "positions": {
       "type": "array"
      },
      "total_positions": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gateway-spraay-app-ca5c88c6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gateway.spraay.app](https://www.zero.xyz/host/gateway.spraay.app/llms.txt)
