attest_artifact_onchain_icp
[x402 Paid: $0.01 Base USDC] Deterministically validate an agent output artifact against an optional JSON Schema and anchor a tamper-proof payer-bound SHA-256 receipt on IC Mainnet.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"agentId": "<agentId>",
"artifactType": "<artifactType>",
"payload": "<payload>"
},
"name": "attest_artifact_onchain_icp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draft | No | JSON Schema draft version when `schema` is supplied (default '2020-12'). | |
| schema | No | Optional JSON Schema object (ReDoS-checked, no remote $ref) to validate `payload` before anchoring. | |
| agentId | Yes | Identifier of the agent producing the artifact. | |
| payload | Yes | JSON value produced by the agent to canonically hash, validate, and anchor on IC Mainnet. | |
| artifactType | Yes | Category label of the attested artifact (e.g. task-result, audit-report). | |
| policyVersion | No | Optional policy version tag recorded alongside the IC Mainnet receipt. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | Yes | ||
| receiptId | Yes | ||
| onChainProof | Yes | ||
| payerAddress | Yes | ||
| schemaSha256 | Yes | ||
| verifiedAtUtc | Yes | ||
| artifactSha256 | Yes | ||
| anchoredOnChain | Yes | ||
| validationErrors | Yes |