# Blockchain DeFi TVL Comparator

> Blockchain DeFi TVL Comparator is a paid API for AI agents from api.vextorium.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-01).

Compares two blockchains by DeFi TVL (total value locked), market share percentage, native gas token, and which chain is larger, using live DefiLlama data.

## Facts

- Endpoint: POST https://api.vextorium.com/cadena-comparar-pago?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/blockchain-defi-tvl-comparator-79626d6c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fb-NqxdnvnojahvoZuVP1

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 blockchain-defi-tvl-comparator-79626d6c -d '<json body>'
```

Example prompt: Can you compare Base and Arbitrum by DeFi TVL — which one is bigger, what's each one's market share, and what are their gas tokens?

## When to prefer this

Use this endpoint when you need a direct, live side-by-side DeFi TVL comparison between exactly two named blockchains, including market share and gas token context. Prefer this over raw DefiLlama API access when you want a pre-packaged, structured comparison without handling pagination or chain enumeration yourself.

## Known failure modes

- Unknown or misspelled chain name returns null values for that chain
- DefiLlama API unavailability causes data fetch failure
- Chain not indexed by DefiLlama returns empty TVL
- Malformed request body missing cadena_a or cadena_b returns validation error
- Payment failure via x402 protocol blocks the request

## How this service works

Compare two blockchains by DeFi TVL: value locked, share of the whole market and gas token, plus which one is bigger. Live from DefiLlama.

## Output

Returns an object with two sub-objects (a and b), each containing the chain name, TVL in USD, market share as a percentage of total DeFi TVL, and the native gas token. Also includes a 'mayor_tvl' field naming the larger chain and a 'nota' field with a summary note.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [
      "cadena_a",
      "cadena_b"
     ],
     "properties": {
      "cadena_a": {
       "type": "string",
       "description": "First chain, e.g. Base"
      },
      "cadena_b": {
       "type": "string",
       "description": "Second chain, e.g. Arbitrum"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": [
      "object",
      "null"
     ],
     "properties": {
      "a": {
       "type": [
        "object",
        "null"
       ],
       "properties": {
        "cadena": {
         "type": [
          "string",
          "null"
         ]
        },
        "tvl_usd": {
         "type": [
          "number",
          "null"
         ]
        },
        "cuota_pct": {
         "type": [
          "number",
          "null"
         ]
        },
        "token_gas": {}
       }
      },
      "b": {
       "type": [
        "object",
        "null"
       ],
       "properties": {
        "cadena": {
         "type": [
          "string",
          "null"
         ]
        },
        "tvl_usd": {
         "type": [
          "number",
          "null"
         ]
        },
        "cuota_pct": {
         "type": [
          "number",
          "null"
         ]
        },
        "token_gas": {
         "type": [
          "string",
          "null"
         ]
        }
       }
      },
      "nota": {
       "type": [
        "string",
        "null"
       ]
      },
      "mayor_tvl": {
       "type": [
        "string",
        "null"
       ]
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "a": {
   "cadena": "Base",
   "tvl_usd": 6291217992,
   "cuota_pct": 6.67,
   "token_gas": null
  },
  "b": {
   "cadena": "Arbitrum",
   "tvl_usd": 1426509393,
   "cuota_pct": 1.51,
   "token_gas": "ARB"
  },
  "nota": "Comparativa de dos cadenas por dinero en DeFi. Fuente: DefiLlama.",
  "mayor_tvl": "Base"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/blockchain-defi-tvl-comparator-79626d6c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.vextorium.com](https://www.zero.xyz/host/api.vextorium.com/llms.txt)
