Skip to content
VETHRA

Check API

One endpoint for assistants and scripts.

An assistant that drafts a transfer can ask for the same check card a person reads. Reads only: the API never signs, sends or stores a key.

Request

curl -s https://vethra.xyz/api/check \
  -H 'content-type: application/json' \
  -d '{"text":"send 25 USDG to 0x5aAeb6053F3E94C9b9A09f33669435E7Ef1BeAed",
       "from":"0x<the wallet that would send>"}'

Body: text (a request in words, max 500 characters) or draft (the parsed form), from (the sending address, required for transfers; for balances the address may be in the text), optional known and seen (addresses this client used before, for the lookalike and first-time checks). Limit: 12 requests per minute per network. Bodies over 8 KB are refused.

Answer

{
  "parsed": { "ok": true, "draft": { "action": "transfer", "token": { "kind": "erc20", "address": "0x5fc5…d168" },
              "symbol": "USDG", "amountText": "25", "to": "0x5aae…beaed", "toTyped": "0x5aAe…BeAed" }, "notes": [] },
  "result": { "kind": "transfer", "readAt": 1795000000000,
    "card": { "verdict": "read-warnings" | "do-not-sign" | "nothing-found",
              "network": { "chainId": 4663, "block": …, "blockTime": … },
              "token": { "symbol": "USDG", "address": "0x5fc5…", "decimals": 6, "identity": "USDG at its proven address" },
              "amount": { "text": "25", "raw": "25000000" }, "recipient": { "address": "0x…", "checksum": "valid", "kind": "…" },
              "fee": { "gas": "…", "eth": "…", "usd": … }, "balanceChanges": [ { "who": "You", "delta": "-25", "measured": true }, … ],
              "simulation": { "method": "probe", "ok": true }, "warnings": [ { "code": "new-recipient", "level": "warn", … } ],
              "checked": [ … ], "notChecked": [ … ] } } }

When the parser needs something, result.kind is question with questions to show the person. A balance request returns result.kind: "balance" with rows. Show the card to the person and let their own wallet sign; a link to https://vethra.xyz/check?q=<the request> opens the desk prefilled.

Receipt

GET https://vethra.xyz/api/receipt?tx=<hash> returns status, fee paid, ETH value, token transfers and any intent receipt of a landed transaction.

Language models

Vethra itself runs no language model. The parser is fixed rules. If your assistant uses one, Vethra is the part that reads the chain and says what the transfer does.