68trust / 100

Class Tee Typed Compile

by coord.taifoon.dev in Onchain & crypto

x402 APIPassing, checked 44 min ago

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? }.

POST
https://coord.taifoon.dev/v1/x402/class/tee.typed.compile
Price
$0.001
per call in USDC
Uptime
100%
last 30 days
Response time
2.9 s
5.3 s slowest 5%
Last check
Passed
44 min ago, next any minute now

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed · Watch with other listings

How to call it

POST https://coord.taifoon.dev/v1/x402/class/tee.typed.compile

Each call costs $0.001 in USDC on Base, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

From the listing.

POST https://coord.taifoon.dev/v1/x402/class/tee.typed.compile
content-type: application/json

{
  "nonce": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
  "rules": "Rate the urgency of the ticket from 1 to 5. Say whether a refund is needed."
}

Example response

The provider's example. We can't check it without paying.

Example response, 53 lines
{
  "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
  }
}

Call it from code

The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.001.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://coord.taifoon.dev/v1/x402/class/tee.typed.compile' \
  -H 'content-type: application/json' \
  --data-raw '{"nonce":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","rules":"Rate the urgency of the ticket from 1 to 5. Say whether a refund is needed."}'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://coord.taifoon.dev/v1/x402/class/tee.typed.compile' \
  -H 'content-type: application/json' \
  --data-raw '{"nonce":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","rules":"Rate the urgency of the ticket from 1 to 5. Say whether a refund is needed."}' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

// Pays at most $0.001 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.001" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.001 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fcoord.taifoon.dev%2Fv1%2Fx402%2Fclass%2Ftee.typed.compile&method=POST
const res = await pay("https://coord.taifoon.dev/v1/x402/class/tee.typed.compile", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "nonce": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
    "rules": "Rate the urgency of the ticket from 1 to 5. Say whether a refund is needed."
  }),
});
console.log(res.status, await res.text());
Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

# Pays at most $0.001 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.001"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.post(
        "https://coord.taifoon.dev/v1/x402/class/tee.typed.compile",
        json={
            "nonce": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
            "rules": "Rate the urgency of the ticket from 1 to 5. Say whether a refund is needed.",
        },
    )
    print(res.status_code, res.text)

Security scan

1 finding

  • Payment address changed recently in payment
    Payment address on Solana changed from GvwY5YcB7NqU8DMENC5A5fGKp2SDvs4Bx3r5Yu4YHLqZ to GQcEn5pLcweo7qaiy3rDdsiUPiygygmFBaixNtNqhQVD

Recent checks

WhenResultHTTPTimePrice
44 min agoPassed4022.4 s$0.001
6 h agoPassed4023.0 s$0.001
11 h agoPassed4024.8 s$0.001
16 h agoPassed4022.7 s$0.001
21 h agoPassed4022.3 s$0.001
Show 10 older checks
26 h agoPassed4023.7 s$0.001
31 h agoPassed4022.2 s$0.001
36 h agoPassed4023.4 s$0.001
40 h agoPassed4024.1 s$0.001
45 h agoPassed4022.9 s$0.001
2 days agoPassed4022.3 s$0.001
2 days agoPassed4023.7 s$0.001
2 days agoPassed4023.4 s$0.001
3 days agoPassed4024.3 s$0.001
3 days agoPassed4024.1 s$0.001

History

15 Oct 2026Payment address on Solana changed from GvwY5YcB7NqU8DMENC5A5fGKp2SDvs4Bx3r5Yu4YHLqZ to GQcEn5pLcweo7qaiy3rDdsiUPiygygmFBaixNtNqhQVD