{
  "x402Version": 2,
  "id": 39998,
  "slug": "39998",
  "resource": "https://coord.taifoon.dev/v1/x402/class/tee.typed.compile",
  "description": "Rules compiled into typed questions inside Taifoon's Intel TDX enclave (Phala Cloud). The answer carries two TDX quotes, both verified by Phala's verifier before you are charged: one binds the result and the enclave key, one binds that key to sha256 of your nonce. The compose-hash in RTMR3 proves which code runs. 0.001 USDC a request. Send { rules, nonce? }.",
  "type": "http",
  "resourceType": "Beauty & Personal Care",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x3574999dd4c96eB73Bd6e11D4177010C83E14f5b",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "1000",
      "amountUsd": 0.001,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0x3574999dd4c96eB73Bd6e11D4177010C83E14f5b",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "1000",
      "amountUsd": 0.001,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:5042",
      "payTo": "0x3574999dd4c96eB73Bd6e11D4177010C83E14f5b",
      "asset": "0x3600000000000000000000000000000000000000",
      "amount": "1000",
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:4663",
      "payTo": "0x3574999dd4c96eB73Bd6e11D4177010C83E14f5b",
      "asset": "0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168",
      "amount": "1000",
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:143",
      "payTo": "0x3574999dd4c96eB73Bd6e11D4177010C83E14f5b",
      "asset": "0x754704Bc059F8C67012fEd69BC8A327a5aafb603",
      "amount": "1000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "challenge": {
            "description": "nonce, report_data = address ‖ sha256(nonce) ‖ 0^12, quote (TDX v4, hex)",
            "type": "object"
          },
          "class": {
            "const": "tee.typed.compile",
            "type": "string"
          },
          "enclave": {
            "description": "mode tdx, address (the enclave key), app_id, mrtd, report_data = sha256(JSON(result)) ‖ address ‖ 0^12, quote (TDX v4, hex)",
            "type": "object"
          },
          "result": {
            "description": "class, rules, ready, questions[]: the compile",
            "type": "object"
          },
          "verification": {
            "description": "verifier answers on both quotes, same_td, compose (RTMR3 replay, compose-hash, catalogue), checks",
            "type": "object"
          }
        },
        "required": [
          "class",
          "result",
          "enclave",
          "challenge",
          "verification"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "nonce": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
            "rules": "Rate the urgency of the ticket from 1 to 5. Say whether a refund is needed."
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "challenge": {
              "nonce": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
              "quote": "04000200…",
              "report_data": "…128 hex"
            },
            "class": "tee.typed.compile",
            "enclave": {
              "address": "the enclave key (GET https://coord.taifoon.dev/v1/our-cards?card=tee enclave.attestation names it)",
              "app_id": "4c149b4f7ad6365a298f29e9b950379cdc4eb4f7",
              "mode": "tdx",
              "quote": "04000200…",
              "report_data": "…128 hex"
            },
            "result": {
              "class": "tee.typed.compile",
              "questions": [
                {
                  "id": "rate_urgency_ticket_1",
                  "kind": "score",
                  "levels": [
                    "1 (lowest)",
                    "2",
                    "3",
                    "4",
                    "5 (highest)"
                  ],
                  "text": "Rate the urgency of the ticket?"
                },
                {
                  "id": "say_refund_needed",
                  "kind": "noul",
                  "text": "Say whether a refund is needed?"
                }
              ],
              "ready": true,
              "rules": "Rate the urgency of the ticket from 1 to 5. Say whether a refund is needed."
            },
            "verification": {
              "challenge_verified": true,
              "checks": {
                "enclave_real": true,
                "fresh": true,
                "quote_bound": true
              },
              "compose": {
                "compose_hash": "a90d344ec2057f095058feba3374910cfb4277bae6db6b6727bc0d296f225c1e",
                "ok": true
              },
              "delivery_verified": true,
              "same_td": true
            }
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "nonce": {
                    "description": "optional: your challenge (e.g. the sha256 of your payload); the challenge quote binds the enclave key to sha256 of it",
                    "pattern": "^[0-9a-fA-F]{8,128}$",
                    "type": "string"
                  },
                  "rules": {
                    "description": "the rules in words, one clause per rule; compiled into typed questions inside the enclave",
                    "maxLength": 1000,
                    "minLength": 4,
                    "type": "string"
                  }
                },
                "required": [
                  "rules"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "headers": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "method": {
                "enum": [
                  "POST",
                  "PUT",
                  "PATCH"
                ],
                "type": "string"
              },
              "queryParams": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "challenge": {
                    "description": "nonce, report_data = address ‖ sha256(nonce) ‖ 0^12, quote (TDX v4, hex)",
                    "type": "object"
                  },
                  "class": {
                    "const": "tee.typed.compile",
                    "type": "string"
                  },
                  "enclave": {
                    "description": "mode tdx, address (the enclave key), app_id, mrtd, report_data = sha256(JSON(result)) ‖ address ‖ 0^12, quote (TDX v4, hex)",
                    "type": "object"
                  },
                  "result": {
                    "description": "class, rules, ready, questions[]: the compile",
                    "type": "object"
                  },
                  "verification": {
                    "description": "verifier answers on both quotes, same_td, compose (RTMR3 replay, compose-hash, catalogue), checks",
                    "type": "object"
                  }
                },
                "required": [
                  "class",
                  "result",
                  "enclave",
                  "challenge",
                  "verification"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "coord.taifoon.dev",
  "lastUpdated": "2026-10-12T07:16:55.126Z",
  "quality": {
    "calls30d": 1,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-10-12T07:16:54.748Z"
  },
  "metadata": {
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "nonce": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
              "rules": "Rate the urgency of the ticket from 1 to 5. Say whether a refund is needed."
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "challenge": {
                "nonce": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
                "quote": "04000200…",
                "report_data": "…128 hex"
              },
              "class": "tee.typed.compile",
              "enclave": {
                "address": "the enclave key (GET https://coord.taifoon.dev/v1/our-cards?card=tee enclave.attestation names it)",
                "app_id": "4c149b4f7ad6365a298f29e9b950379cdc4eb4f7",
                "mode": "tdx",
                "quote": "04000200…",
                "report_data": "…128 hex"
              },
              "result": {
                "class": "tee.typed.compile",
                "questions": [
                  {
                    "id": "rate_urgency_ticket_1",
                    "kind": "score",
                    "levels": [
                      "1 (lowest)",
                      "2",
                      "3",
                      "4",
                      "5 (highest)"
                    ],
                    "text": "Rate the urgency of the ticket?"
                  },
                  {
                    "id": "say_refund_needed",
                    "kind": "noul",
                    "text": "Say whether a refund is needed?"
                  }
                ],
                "ready": true,
                "rules": "Rate the urgency of the ticket from 1 to 5. Say whether a refund is needed."
              },
              "verification": {
                "challenge_verified": true,
                "checks": {
                  "enclave_real": true,
                  "fresh": true,
                  "quote_bound": true
                },
                "compose": {
                  "compose_hash": "a90d344ec2057f095058feba3374910cfb4277bae6db6b6727bc0d296f225c1e",
                  "ok": true
                },
                "delivery_verified": true,
                "same_td": true
              }
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "properties": {
                    "nonce": {
                      "description": "optional: your challenge (e.g. the sha256 of your payload); the challenge quote binds the enclave key to sha256 of it",
                      "pattern": "^[0-9a-fA-F]{8,128}$",
                      "type": "string"
                    },
                    "rules": {
                      "description": "the rules in words, one clause per rule; compiled into typed questions inside the enclave",
                      "maxLength": 1000,
                      "minLength": 4,
                      "type": "string"
                    }
                  },
                  "required": [
                    "rules"
                  ],
                  "type": "object"
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "headers": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": "object"
                },
                "method": {
                  "enum": [
                    "POST",
                    "PUT",
                    "PATCH"
                  ],
                  "type": "string"
                },
                "queryParams": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": "object"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "challenge": {
                      "description": "nonce, report_data = address ‖ sha256(nonce) ‖ 0^12, quote (TDX v4, hex)",
                      "type": "object"
                    },
                    "class": {
                      "const": "tee.typed.compile",
                      "type": "string"
                    },
                    "enclave": {
                      "description": "mode tdx, address (the enclave key), app_id, mrtd, report_data = sha256(JSON(result)) ‖ address ‖ 0^12, quote (TDX v4, hex)",
                      "type": "object"
                    },
                    "result": {
                      "description": "class, rules, ready, questions[]: the compile",
                      "type": "object"
                    },
                    "verification": {
                      "description": "verifier answers on both quotes, same_td, compose (RTMR3 replay, compose-hash, catalogue), checks",
                      "type": "object"
                    }
                  },
                  "required": [
                    "class",
                    "result",
                    "enclave",
                    "challenge",
                    "verification"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "coord.taifoon.dev",
    "manifest_name": "coord.taifoon.dev",
    "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": {
      "challenge": {},
      "class": "string",
      "enclave": {},
      "result": {},
      "verification": {}
    },
    "type": "string"
  }
}