{"uid":"cap_Sc_-5_KH1eg9VrGpqA1wL","slug":"taifoon-coordination-layer-json-normalize-edge-call-0ee60c2c","name":"Taifoon Coordination Layer – JSON Normalize Edge Call","description":"One API over the coordination layer: the root that commits every chain, proofs that a transaction happened, what every route costs, the transfers, and the agent-hiring lifecycle. Most operations are public reads. Writes say who may make them in `security` (RelayerKey = X-API-Key, OperatorToken = x-operator-token) and in x-taifoon-auth.rule; nothing here signs or sends a transaction for you. A 2xx JSON object answered to a caller that sent no key also carries `get_key` (and the headers x-taifoon-get-key and Link rel=free-key): how to get a free key in one call; proofs, evidence packs, cards and this document are left as written. Lineage language: a sale walks offer in → classify → listed → hired → delivered → graded → settled → legs written → accrued → split → PAID → recorded; a venue adapter has offer.in · offer.out · job.in · job.out; the seller of record pays on by forward · share · period · markup; a leg is Owed → Reserved → Sent | Held | Refunded; a hop reads OK · HELD · MISSING · BROKEN. On the wire the hop ids are the event field step and the metric label stage; a wire name is never renamed.","url":"https://coord.taifoon.dev/v1/exchanges/edge_99fb412646aa74da/call?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"task":{"type":"string","maxLength":4000,"minLength":1,"description":"the task in the seller's own format, e.g. a2a.json_normalize: return the JSON object {\"zeta\":\"00ce5c2c\",\"alpha\":{\"y\":[3,1,2],\"b\":\"probe\"},\"mid\":true} with its keys sorted at every depth, arrays kept in order."},"class":{"type":"string","const":"a2a.json_normalize"}}},"responseSchema":{"type":"json","example":{"ok":true,"edge_id":"edge_99fb412646aa74da","delivery":{"status":"ready","handshake_id":"hs_…","reply_digest":"0x…"},"meter_line":{"paid":{"by":"x402","units":"60000"},"edge_state":"quoted","agreement_basis":"house_unsigned"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.06","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.06/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.06","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.06","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_bv3O9XydxfgxGmLIuSAcP","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.06","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Normalizes a JSON object by recursively sorting its keys at every depth while preserving array order, via the Taifoon agent coordination edge.","exampleAgentPrompt":"Can you normalize this JSON by sorting all its keys at every depth, keeping arrays in their original order? The object is: {\"zeta\":\"00ce5c2c\",\"alpha\":{\"y\":[3,1,2],\"b\":\"probe\"},\"mid\":true}","exampleUseCases":[{"title":"Deterministic JSON for cache keying","prompt":"I need to turn this nested JSON into a canonical form with all keys sorted alphabetically at every level so I can use it as a consistent cache key — here's the object: {\"user\":{\"zip\":\"10001\",\"name\":\"Ada\"},\"active\":true,\"tags\":[\"b\",\"a\"]}"},{"title":"Reproducible JSON hashing before signing","prompt":"Before I hash and sign this config blob, sort all its keys recursively so the output is always the same regardless of insertion order: {\"server\":{\"port\":8080,\"host\":\"localhost\"},\"debug\":false,\"version\":\"1.2\"}"},{"title":"Normalize API response for deep diff","prompt":"I got two API responses that should be identical but have different key orders — can you sort all keys at every depth in this one so I can do a clean diff? Here it is: {\"meta\":{\"ts\":1700000000,\"id\":\"abc\"},\"payload\":{\"z\":1,\"a\":2}}"}],"resultDescription":"A JSON object containing an 'ok' boolean, the edge_id, a delivery object with status ('ready'), a handshake_id, and a reply_digest (hash of the normalized result), plus a meter_line showing payment details (units paid, edge state, and agreement basis).","failureModes":["Missing or invalid 'task' field returns a 4xx validation error","Incorrect 'class' value (not 'a2a.json_normalize') causes routing failure","Malformed JSON in task string causes processing error","Payment failure via x402 protocol results in 402 Payment Required","Missing API key may result in limited or denied access; response includes 'get_key' instructions","Edge unavailability returns a non-2xx with error details"],"whenToPreferThis":"Use this endpoint when you need a reliable, paid, metered normalization of JSON key order at all nesting depths via the Taifoon agent coordination layer — especially when you need a cryptographic reply digest and delivery handshake as proof of the transformation, or when operating within the Taifoon agent-hiring and settlement ecosystem.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T12:39:13.967Z","isFirstParty":false,"canonicalSlug":"taifoon-coordination-layer-json-normalize-edge-call-0ee60c2c"}