{"slug":"enclave402-com-api-agent-attest-51b4be","title":"EIP-712 signed, timestamped attestation binding an agentId, the keccak256 digest","host":"enclave402.com","method":"POST","resource":"https://enclave402.com/api/agent/attest","category":"code","description":"EIP-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 exist","price_listed":0.04,"price_asked":0.04,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":558,"reported_calls_30d":3,"reported_payers_30d":2,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"agentId":"agent-0x402-1","state":"{\"task\":\"rebalance\",\"decision\":\"hold\"}"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{"agentId":{"description":"Stable identifier or EVM address of the agent being attested.","examples":["agent-0x402-1","did:web:example.com:agents:planner"],"maxLength":200,"minLength":1,"type":"string"},"state":{"description":"Serialized state, decision, or payload hash to bind. Hashed with keccak256(utf8); the raw string is never stored.","examples":["{\"task\":\"rebalance\",\"decision\":\"hold\",\"at\":1789650000}"],"maxLength":8192,"type":"string"}},"required":["agentId"]},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"additionalProperties":false,"properties":{"attestation":{"description":"Attestation status","enum":["SIGNED"],"type":"string"},"attestationId":{"description":"keccak256 of the signature","pattern":"^0x[a-fA-F0-9]{64}$","type":"string"},"attestor":{"description":"Gateway attestor address (published at /transparency)","pattern":"^0x[a-fA-F0-9]{40}$","type":"string"},"digest":{"description":"EIP-712 typed-data hash that was signed","pattern":"^0x[a-fA-F0-9]{64}$","type":"string"},"eip712":{"description":"domain, types, primaryType and message needed to verify offline","type":"object"},"enclaveRpc":{"description":"Enclave verification endpoint when configured, else null","type":["string","null"]},"settled":{"description":"true when an x402 payment settled for this response","type":"boolean"},"signature":{"description":"65-byte secp256k1 signature, hex","type":"string"},"teeProvider":{"description":"Hardware TEE provider when configured, else null","type":["string","null"]},"teeQuote":{"description":"Hardware quote when a TEE is configured, else null","type":["string","null"]},"ts":{"description":"Response timestamp, UNIX milliseconds","type":"integer"},"verify":{"description":"One-line verification recipe","type":"string"}},"required":["attestation","attestationId","attestor","digest","signature","eip712","settled","ts"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-09-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.04,"price_match":true,"latency_ms":558,"error":null}],"description_full":"EIP-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.","last_updated":"2026-09-19T12:07:57.225Z","schemes":["exact"]}