{
  "x402Version": 2,
  "id": 28678,
  "slug": "28678",
  "resource": "https://rtt.phoenix-ai.work/api/v1/safe",
  "description": "Boolean pre-flight check for L2 transaction safety across all 12 chains (?chain= param, default: base). Returns safe=true/false with reason code. Revert ratio data available for Base and Arbitrum only (eth_getBlockReceipts); other chains use RTT-only analysis. Optimized for high-frequency agent calls.",
  "type": "http",
  "serviceName": "Phoenix Zero Safe Check",
  "resourceType": "Monitoring",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xbb967F16C7f3e9B4c1626680684445d41dBE44Ab",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0xbb967F16C7f3e9B4c1626680684445d41dBE44Ab",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0xbb967F16C7f3e9B4c1626680684445d41dBE44Ab",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "chain": {
            "description": "Chain checked (default: base, supports all 12)",
            "type": "string"
          },
          "p99_ms": {
            "description": "Sequencer P99 RTT in milliseconds",
            "type": "number"
          },
          "reason": {
            "enum": [
              "ok",
              "elevated_revert",
              "high_revert",
              "elevated_latency",
              "high_latency",
              "sequencer_stall",
              "data_stale"
            ],
            "type": "string"
          },
          "revert_data_available": {
            "description": "True if revert ratio is measured for this chain (Base and Arbitrum only)",
            "type": "boolean"
          },
          "revert_ratio": {
            "description": "Transaction revert ratio (0.0-1.0). null for chains without revert data.",
            "type": "number"
          },
          "safe": {
            "description": "true = safe to execute L2 transaction now",
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "type": "http"
        },
        "output": {
          "example": {
            "chain": "base",
            "p99_ms": 42.3,
            "reason": "ok",
            "revert_data_available": true,
            "revert_ratio": 0.023,
            "safe": true
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET",
                  "HEAD",
                  "DELETE"
                ],
                "type": "string"
              },
              "queryParams": {
                "properties": {},
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "chain": {
                    "description": "Chain checked (default: base, supports all 12)",
                    "type": "string"
                  },
                  "p99_ms": {
                    "description": "Sequencer P99 RTT in milliseconds",
                    "type": "number"
                  },
                  "reason": {
                    "enum": [
                      "ok",
                      "elevated_revert",
                      "high_revert",
                      "elevated_latency",
                      "high_latency",
                      "sequencer_stall",
                      "data_stale"
                    ],
                    "type": "string"
                  },
                  "revert_data_available": {
                    "description": "True if revert ratio is measured for this chain (Base and Arbitrum only)",
                    "type": "boolean"
                  },
                  "revert_ratio": {
                    "description": "Transaction revert ratio (0.0-1.0). null for chains without revert data.",
                    "type": "number"
                  },
                  "safe": {
                    "description": "true = safe to execute L2 transaction now",
                    "type": "boolean"
                  }
                },
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "l2",
    "safe",
    "pre-flight",
    "boolean",
    "bazaar"
  ],
  "sourceHost": "rtt.phoenix-ai.work",
  "lastUpdated": "2026-10-10T13:02:18.414Z",
  "quality": {
    "calls30d": 4,
    "uniquePayers30d": 4,
    "lastCalledAt": "2026-10-10T13:02:18.246Z"
  },
  "metadata": {
    "serviceName": "Phoenix Zero Safe Check",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "method": "GET",
            "type": "http"
          },
          "output": {
            "example": {
              "chain": "base",
              "p99_ms": 42.3,
              "reason": "ok",
              "revert_data_available": true,
              "revert_ratio": 0.023,
              "safe": true
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "method": {
                  "enum": [
                    "GET",
                    "HEAD",
                    "DELETE"
                  ],
                  "type": "string"
                },
                "queryParams": {
                  "properties": {},
                  "type": "object"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "chain": {
                      "description": "Chain checked (default: base, supports all 12)",
                      "type": "string"
                    },
                    "p99_ms": {
                      "description": "Sequencer P99 RTT in milliseconds",
                      "type": "number"
                    },
                    "reason": {
                      "enum": [
                        "ok",
                        "elevated_revert",
                        "high_revert",
                        "elevated_latency",
                        "high_latency",
                        "sequencer_stall",
                        "data_stale"
                      ],
                      "type": "string"
                    },
                    "revert_data_available": {
                      "description": "True if revert ratio is measured for this chain (Base and Arbitrum only)",
                      "type": "boolean"
                    },
                    "revert_ratio": {
                      "description": "Transaction revert ratio (0.0-1.0). null for chains without revert data.",
                      "type": "number"
                    },
                    "safe": {
                      "description": "true = safe to execute L2 transaction now",
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "rtt.phoenix-ai.work",
    "manifest_name": "rtt.phoenix-ai.work",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "chain": "string",
      "p99_ms": 0,
      "reason": "ok",
      "revert_data_available": true,
      "revert_ratio": 0,
      "safe": true
    },
    "type": "string"
  }
}