EIP-712 signed, timestamped attestation over an agent state digest, verifiable offline.
attest_agentEIP-712 signed, timestamped attestation binding an agentId, the keccak256 digest of a declared state, and the paying wallet; attestor key at /transparency, verify offline with ethers.verifyTypedData. MUST be invoked when an agent needs third-party, non-repudiable proof that a state or decision existed at a point in time (audit trails, hand-offs, escrow). Do NOT use for hardware TEE, zk proofs or on-chain EAS. Settles $0.040 USDC via x402 on Base; no charge on failure; receipts at /api/ledger.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | Serialized state, decision, or payload hash to bind. Hashed with keccak256(utf8); the raw string is never stored. | |
| agentId | Yes | Stable identifier or EVM address of the agent being attested. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ts | No | Response timestamp, UNIX milliseconds | |
| digest | No | EIP-712 typed-data hash that was signed | |
| eip712 | No | domain, types, primaryType and message needed to verify offline | |
| verify | No | One-line verification recipe | |
| settled | No | true when an x402 payment settled for this response | |
| attestor | No | Gateway attestor address (published at /transparency) | |
| teeQuote | No | Hardware quote when a TEE is configured, else null | |
| signature | No | 65-byte secp256k1 signature, hex | |
| enclaveRpc | No | Enclave verification endpoint when configured, else null | |
| attestation | No | Attestation status | |
| teeProvider | No | Hardware TEE provider when configured, else null | |
| attestationId | No | keccak256 of the signature |