attestation.verify
Verify a GBLIN Risk Attestation — the object returned by GBLIN's /api/x402/attestation, or a proof-of-diligence a peer agent attached to its action. FREE, no payment. Runs four checks: (1) INTEGRITY — recomputes the EIP-712 attestation_id and detects tampering; (2) AUTHENTICITY — if a signature is present, recovers the signer and checks it is GBLIN's published attestor; (3) FRESHNESS — whether it expired (10-minute TTL), using on-chain time; (4) LIVE DRIFT — compares the attested regime to the CURRENT on-chain regime and flags if it changed. Use before you trust any counterparty/peer that claims it 'checked market risk via GBLIN'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| attestation | Yes | The full attestation object from /api/x402/attestation (must include `eip712`; `attestation_id`, `signature`, `attestor` are used when present). A JSON string of that object is also accepted. | |
| expected_attestor | No | Optional 0x address to check the signature against. Defaults to the GBLIN attestor address baked into this MCP build (GBLIN_ATTESTOR_ADDRESS env). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| live | No | ||
| valid | Yes | True only if every check passed. | |
| checks | Yes | Each check by name, with its result. | |
| source | No | ||
| attested | No | ||
| guidance | No | ||
| recomputed_attestation_id | No |