# RadhikaChain Atomic Swap Creator (RADH <-> BTC)

> RadhikaChain Atomic Swap Creator (RADH <-> BTC) is a paid API for AI agents from x402.radhikachain.xyz, paid per call via x402, $13.728/call, status unknown (last checked 2026-09-15).

Returns the current atomic swap market state for RADH-to-BTC cross-chain swaps on RadhikaChain, including open offers, locked RADH amounts, and how the custodian-free HTLC mechanism works.

## Facts

- Endpoint: GET https://x402.radhikachain.xyz/swap/crear
- Price: $13.728/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/radhikachain-atomic-swap-creator-radh-btc-92cb944d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KJgBqhhiEw4FdW-2Lmeb6

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 radhikachain-atomic-swap-creator-radh-btc-92cb944d
```

Example prompt: Show me the current atomic swap market on RadhikaChain — I want to see open RADH-to-BTC offers, how much RADH is locked, and how the custodian-free hash-locked mechanism actually works.

## When to prefer this

Choose this endpoint when you need a read-only snapshot of the RadhikaChain RADH-to-BTC atomic swap market, especially if you want to understand or display the non-custodial HTLC mechanism or check current open offers before initiating a swap. Prefer this over generic DEX or CEX APIs when working specifically with RadhikaChain's Bitcoin-fork ecosystem and its ZK-verified swap infrastructure.

## Known failure modes

- Missing or invalid x402 USDC payment header returns 402 Payment Required
- Insufficient USDC balance or stale payment nonce causes payment rejection
- Network issues with Base (eip155:8453) chain may delay payment settlement
- Empty offers array if no swap offers are currently posted — not an error, just an empty market
- Endpoint may return stale data if chain telemetry is lagging

## How this service works

Telemetria de cadena, inteligencia de defensa y computo verificable (Halo2, Nova, Plonky3). Pago por peticion en USDC nativo en Base (eip155:8453) mediante x402 v2 scheme exact; sin cuenta ni suscripcion. Catalogo canonico: GET /.well-known/x402.

## Output

A JSON object containing: the swap product name ('Atomic Swap RADH <-> BTC'), a list of current market offers (may be empty), the count of open offers, total RADH locked, a boolean indicating non-custodial status, a plain-language explanation of the SHA-256 HTLC mechanism, an on-chain verification status flag, and a note explaining why RadhikaChain requires no permission (Bitcoin Core fork with independent genesis).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "body": {
     "type": "object",
     "additionalProperties": true
    },
    "queryParams": {
     "type": "object",
     "additionalProperties": true
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "type": "object",
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "mercado": {
   "ofertas": [],
   "ofertas_abiertas": 0,
   "radha_bloqueado_total": 0
  },
  "producto": "Atomic Swap RADH <-> BTC",
  "sin_custodia": true,
  "como_funciona": "el mismo hash SHA-256 bloquea fondos en las dos cadenas; quien cobra revela la preimagen y la otra parte la lee on-chain para cobrar al otro lado",
  "verificado_en_cadena": false,
  "por_que_no_necesita_permiso": "RadhikaChain es Bitcoin Core con genesis propio: comparte los opcodes (bip65/CLTV, bip66, csv, segwit activos desde el bloque 1) aunque no la historia. Bitcoin no necesita saber que existe"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/radhikachain-atomic-swap-creator-radh-btc-92cb944d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.radhikachain.xyz](https://www.zero.xyz/host/x402.radhikachain.xyz/llms.txt)
