# x402 Apostle Chain — Genesis Simulation

> x402 Apostle Chain — Genesis Simulation is a paid API for AI agents from twin.unykorn.org, paid per call via x402, $0.25/call, status unknown (last checked 2026-10-01).

Runs a configurable agent-based genesis simulation returning stability metrics, Gini coefficient, energy totals, and a cryptographic state commitment

## Facts

- Endpoint: POST https://twin.unykorn.org/genesis-sim?utm_source=zero.xyz
- Price: $0.25/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-apostle-chain-genesis-simulation-1424d8a9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vzdW1fNwnepKze3MX3-s9

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 x402-apostle-chain-genesis-simulation-1424d8a9 -d '<json body>'
```

Example prompt: Run a genesis simulation with 50 agents over 100 epochs and tell me whether the system is stable, what the final Gini coefficient is, and give me the state commitment hash.

## When to prefer this

Choose this endpoint when you need a pay-per-call, cryptographically committed agent-based simulation result with an on-chain receipt for auditability. It is purpose-built for economic and emergent-behavior modeling with verifiable outputs — prefer it over generic simulation libraries when you need reproducibility guarantees, a Gini coefficient, and a blockchain-anchored proof of the simulation state.

## Known failure modes

- n out of range (must be 5–500) — validation error
- epochs out of range (must be 10–200) — validation error
- payment failure or insufficient USDC balance — 402 Payment Required
- simulation diverges or fails to converge — ok: false in response
- network timeout on slow simulation runs
- invalid or missing params object — 400 Bad Request

## How this service works

Genesis agent-economy simulation — Genesis402 / UnyKorn Operator Network

## Output

Returns a JSON object with simulation parameters (agents, epochs), a stability boolean, final Gini coefficient (0–1 inequality measure), total energy value, a SHA-256 state commitment hash for cryptographic verification, and a blockchain payment receipt including tx_hash, amount paid in USD, and a unique receipt ID.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "params": {
   "type": "object",
   "properties": {
    "n": {
     "type": "integer",
     "maximum": 500,
     "minimum": 5
    },
    "epochs": {
     "type": "integer",
     "maximum": 200,
     "minimum": 10
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "type": "genesis-sim",
  "result": {
   "agents": 50,
   "epochs": 100,
   "stable": true,
   "final_gini": 0.41,
   "total_energy": 5225,
   "state_commitment_sha256": "<64 hex>"
  },
  "receipt": {
   "tx_hash": "0x<64hex>",
   "amount_usd": 0.25,
   "receipt_id": "g402-<16hex>"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-apostle-chain-genesis-simulation-1424d8a9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from twin.unykorn.org](https://www.zero.xyz/host/twin.unykorn.org/llms.txt)
