{"uid":"cap_Mw9Nrjtm-x417nHyQuIca","slug":"phoenix-zero-safe-check-b845fb1b","name":"Phoenix Zero Safe Check","description":"Boolean pre-flight check for L2 transaction safety across all 12 chains (?chain= param, default: base). Returns safe=true/false with reason code. Optimized for high-frequency agent calls before submitting transactions.","url":"https://rtt.phoenix-ai.work/api/v1/safe","method":"GET","headers":{},"bodySchema":{"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":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"safe":{"type":"boolean","description":"true = safe to execute L2 transaction now"},"chain":{"type":"string","description":"Chain checked (default: base, supports all 12)"},"p99_ms":{"type":"number","description":"Sequencer P99 RTT in milliseconds"},"reason":{"enum":["ok","elevated_revert","high_revert","sequencer_stall","data_stale"],"type":"string"},"revert_ratio":{"type":"number","description":"Base revert ratio (0.0-1.0)"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_egBpZfYshxsXH47GyRHZd","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Pre-flight boolean safety check for L2 transactions, returning safe/unsafe status with a reason code and sequencer health metrics.","exampleAgentPrompt":"Before I submit this GET transaction to the L2 network, do a Phoenix Zero safe check to make sure conditions are good — I need to know if it's safe to proceed or if the sequencer is stalling.","exampleUseCases":[{"title":"Pre-flight check before DeFi swap","prompt":"Before executing my swap on Base, run a safety check to make sure the sequencer isn't stalling and the revert ratio is low — I don't want to waste gas if conditions are bad."},{"title":"Automated agent transaction gating","prompt":"My agent is about to submit a GET transaction to the L2 — run a Phoenix Zero safe check first and only proceed if safe comes back true and the reason code is 'ok'."},{"title":"Monitoring L2 health during high traffic","prompt":"The network seems congested right now — can you do a quick Phoenix Zero safe check on the L2 and tell me the current revert ratio and P99 latency before I try to send anything?"}],"resultDescription":"Returns a JSON object with: a boolean 'safe' field (true if safe to execute the L2 transaction now), a 'reason' enum ('ok', 'elevated_revert', 'high_revert', 'sequencer_stall', or 'data_stale') explaining the safety status, a 'base_p99_ms' number representing the Base sequencer P99 round-trip time in milliseconds, and a 'revert_ratio' number (0.0–1.0) indicating the current transaction revert rate.","failureModes":["Data stale: reason code 'data_stale' returned when backend health data is too old to be reliable","Sequencer stall detected: safe=false with reason 'sequencer_stall' indicating the L2 sequencer is not processing transactions","High revert conditions: safe=false with reason 'high_revert' when revert ratio is critically elevated","Elevated revert: safe=false with reason 'elevated_revert' for moderately high revert rates","Payment failure: 402 response if USDC payment is not properly attached","Network timeout: endpoint may be temporarily unreachable under extreme L2 stress conditions"],"whenToPreferThis":"Choose this endpoint when your agent needs a fast, cheap ($0.01 USDC), high-frequency pre-flight gate before submitting any L2 blockchain transaction. It is purpose-built for agent automation loops where you want to avoid wasted gas from revert-prone or stalled sequencer conditions. Prefer this over full L2 health oracles when you only need a binary go/no-go decision with a machine-readable reason code rather than full multi-chain sequencer metrics.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:30:38.733Z","isFirstParty":false}