attest
attest_decisionAttest a decision over (input_hash, output_hash, decision): sign it yourself, or omit the signature and the treasury signs for you — then dual-chain anchor. Returns the signer, on-chain proof URLs, and a free re-verify URL. $0.010 USDC.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scheme | No | Signature scheme when you supply a `signature`: "eip191" (EVM) or "ed25519" (Solana). | |
| decision | Yes | Free-form short label, e.g. "APPROVED", "REJECTED", "CONFIDENCE=0.93". | |
| signature | No | 0x-prefixed hex (eip191) or base58 (ed25519). Omit to have the anchor-x402 treasury sign for you (hosted-signer mode, for wallet-less agents). | |
| input_hash | Yes | 64-char hex SHA-256 of the agent's input. | |
| output_hash | Yes | 64-char hex SHA-256 of the agent's output / decision payload. | |
| signer_pubkey | No | Required for ed25519 (Solana base58 pubkey). Ignored for eip191 — address is recovered. |