# Base DeFi Dependency Closure Graph

> Base DeFi Dependency Closure Graph is a paid API for AI agents from intel.fintechhodl.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-29).

Returns the full transitive dependency graph (nodes and edges) for a given DeFi entity on Base, showing everything it ultimately relies on.

## Facts

- Endpoint: GET https://intel.fintechhodl.com/api/v1/closure/:entity?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base-defi-dependency-closure-graph-f8d66725
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6msYdYPiB1r3XcF6g5o5z

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 base-defi-dependency-closure-graph-f8d66725
```

Example prompt: Show me the full transitive dependency graph for protocol:morpho-blue on Base — I want to see every protocol, oracle, stablecoin, and curator it ultimately relies on.

## When to prefer this

Use this endpoint when you need the full transitive (recursive) dependency closure for a DeFi entity on Base — not just direct dependencies but everything it ultimately relies on. Prefer this over per-entity risk cards or opportunity listings when your goal is systemic risk analysis, contagion tracing, or understanding the complete upstream dependency graph of a protocol, stablecoin, oracle, curator, or issuer.

## Known failure modes

- 404 if the entity id is unknown or not tracked
- 400 if the entity id format is invalid (must match pattern ^[A-Za-z0-9:._#+-]{1,120}$)
- 503 while underlying data is refreshing — no charge applied
- Payment required (402) before a 200 is returned — charged only on successful response

## How this service works

Everything an entity (protocol, asset, stablecoin, curator) depends on, transitively, as a graph. Useful for tracing what a protocol or stablecoin ultimately relies on. Entity ids appear in dependency graphs, for example protocol:morpho-blue. Unknown ids answer 404 and invalid arguments 400 before any payment; 503 while data refreshes; charged only for a 200.

## Output

A JSON object containing: the entity id queried, the timestamp of the data (UTC hour), the model version used, data age in minutes, an array of nodes (each with id, type, name) representing all transitively dependent entities, and an array of edges (each with from, to, relation) describing the dependency relationships. Also includes a disclaimer string.

## 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"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "entity"
     ],
     "properties": {
      "entity": {
       "type": "string",
       "pattern": "^[A-Za-z0-9:._#+-]{1,120}$",
       "examples": [
        "protocol:morpho-blue",
        "protocol:aave-v3"
       ],
       "description": "Entity id: protocol:<slug>, stablecoin:<id>, oracle:<name>, curator:<name> or issuer:<name>, as found in dependency graphs."
      }
     },
     "additionalProperties": false
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "as_of",
      "model_version",
      "entity",
      "nodes"
     ],
     "properties": {
      "as_of": {
       "type": "string",
       "description": "Hour the data describes (ISO 8601, UTC)."
      },
      "edges": {
       "type": "array",
       "items": {
        "type": "object"
       },
       "description": "Dependencies: from, to, relation."
      },
      "nodes": {
       "type": "array",
       "items": {
        "type": "object"
       },
       "description": "Entities: id, type, name."
      },
      "entity": {
       "type": "string"
      },
      "disclaimer": {
       "type": "string"
      },
      "data_age_min": {
       "type": "number",
       "description": "Minutes since the newest pool data."
      },
      "model_version": {
       "type": "string",
       "description": "Scoring model version."
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base-defi-dependency-closure-graph-f8d66725/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from intel.fintechhodl.com](https://www.zero.xyz/host/intel.fintechhodl.com/llms.txt)
