{
  "x402Version": 2,
  "id": 6769,
  "slug": "6769",
  "resource": "https://enclave402.com/api/agent/attest",
  "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 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.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xbeF3e7CFd486C14dD8c3aA5911134bF361B973C5",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "40000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "agentId": "agent-0x402-1",
            "state": "{\"task\":\"rebalance\",\"decision\":\"hold\"}"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "attestation": "SIGNED",
            "attestationId": "0x1111111111111111111111111111111111111111111111111111111111111111",
            "attestor": "0x2222222222222222222222222222222222222222",
            "digest": "0x3333333333333333333333333333333333333333333333333333333333333333",
            "eip712": {},
            "enclaveRpc": null,
            "settled": true,
            "signature": "0x4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444",
            "teeProvider": null,
            "teeQuote": null,
            "ts": 1767225600000,
            "verify": "ethers.verifyTypedData(...)"
          },
          "type": "json"
        }
      },
      "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"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "enclave402.com",
  "lastUpdated": "2026-09-18T02:25:26.571Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-09-18T02:25:26.235Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "enclave402.com",
    "manifest_name": "enclave402.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}