← Home
GET/hyax-api/trpc/crypto.getCryptoPaymentStatus

Poll USDC payment status

Re-verifies the transaction on-chain and finalizes the order the moment it has enough confirmations, so polling this is what turns a session into a paid order. Status is `PENDING`, `CONFIRMING`, `PAID`, or `EXPIRED` (past the 3-hour window with no hash submitted). `orderNumber` is returned once paid. tRPC queries are GET requests: pass the SuperJSON payload in the `input` query parameter.

Base URL: https://platform.hyax.com · Replace YOUR_API_KEY with your team API key.

Query parameters

NameRequiredDescription
input Required URL-encoded SuperJSON, e.g. `{"json":{"teamId":"…","sessionId":"…"}}`

Request

curl -X GET 'https://platform.hyax.com/hyax-api/trpc/crypto.getCryptoPaymentStatus?input=%7B%22json%22:%7B%22teamId%22:%22clx_team_id%22,%22sessionId%22:%22clx_session_id%22%7D%7D'

Response

{
  "result": {
    "data": {
      "json": {
        "status": "PAID",
        "orderNumber": "ORD-abc12345"
      }
    }
  }
}