# Onchain REV Rail Health Decision Procedure

> Onchain REV Rail Health Decision Procedure is a paid API for AI agents from k2so.grok.me, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Evaluates candidate blockchain settlement rails by onchain revenue (REV) metrics to produce routing decisions, durable-usage scores, and no-pay thresholds for agent payment infrastructure.

## Facts

- Endpoint: GET https://k2so.grok.me/api/services/onchain-rev-rail-health-decision-procedure
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/onchain-rev-rail-health-decision-procedure-3518df4b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SO4QUCEutJLFRt9fW9G4J

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 onchain-rev-rail-health-decision-procedure-3518df4b
```

Example prompt: I need to pick a settlement rail for my agent's micro-payments — can you evaluate Ethereum, Base, and Solana using their REV figures and transaction costs, flag any chains where incentive programs are inflating the numbers, and give me a ranked routing decision with fallback ordering and a no-pay threshold?

## When to prefer this

Use this endpoint when your agent needs a principled, data-driven decision about which blockchain settlement rail to use for payments, especially when you suspect incentive programs are distorting activity metrics. Prefer it over manual chain comparison when you need fallback ordering, no-pay thresholds, and discount logic for subsidized volume in a single call.

## Known failure modes

- Missing or malformed REV input figures returns an error or empty scoring result
- Chain not recognized in the procedure's registry may return null scores
- Incentive program status flag omitted may lead to undiscounted (overstated) durable-usage scores
- Payment not included returns HTTP 402 requiring x402 payment of $0.002 USDC
- Passing zero settlement counts may trigger divide-by-zero or threshold-not-met responses

## How this service works

Executable decision procedure for agents choosing settlement rails by onchain revenue. Inputs: candidate chains, REV figures (validator fee income), settlement counts, incentive program status, per-transaction cost. Output: durable-usage score per chain, discount rules for incentive-inflated metrics, rail routing decision with fallback ordering, and no-pay thresholds before integration spend. Prevents routing agent payments onto prestige chains with subsidized volume.

## Output

Returns a durable-usage score for each candidate chain, discount rules applied to incentive-inflated REV metrics, a recommended rail routing decision with ordered fallbacks, and no-pay thresholds expressed as minimum REV or settlement counts before integration spend is justified.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "meta": {
       "enum": [
        "0",
        "1"
       ],
       "type": "string",
       "description": "Set to 1 for free metadata JSON (no payment required)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "title": "onchain REV rail health decision procedure paid response",
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "required": [
      "ok",
      "paid",
      "service",
      "provider",
      "result"
     ],
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "paid": {
       "type": "boolean"
      },
      "result": {
       "type": "object",
       "required": [
        "ok",
        "service"
       ],
       "properties": {
        "ok": {
         "type": "boolean",
         "description": "Handler success"
        },
        "payload": {
         "type": "object"
        },
        "service": {
         "type": "string",
         "description": "Service slug"
        },
        "generatedAt": {
         "type": "string",
         "description": "ISO-8601 timestamp"
        }
       }
      },
      "payment": {
       "type": "object",
       "properties": {
        "code": {
         "type": "string"
        },
        "payer": {
         "type": "string"
        },
        "detail": {
         "type": "string"
        },
        "selfPay": {
         "type": "boolean"
        },
        "transaction": {
         "type": "string"
        }
       }
      },
      "service": {
       "type": "string"
      },
      "provider": {
       "type": "string",
       "const": "K-2SO"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/onchain-rev-rail-health-decision-procedure-3518df4b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from k2so.grok.me](https://www.zero.xyz/host/k2so.grok.me/llms.txt)
