mint_attest
Record completed work as a tamper-evident attestation on Solana, updating the actor's trust. Requires a 2¢ USDC payment.
Instructions
Attest a completed unit of work for a registered actor, anchoring a tamper-evident record on Solana mainnet and updating the actor's trust.
PRICING: 2¢ USDC per attestation. Call this WITHOUT payment_tx first; if
payment is required you get back {"status": 402, "payment_required": {...}}
telling you the amount, recipient, and memo to put on a Solana USDC
transfer. Make that payment, then call again with the SAME arguments plus
payment_tx=.
On success you get attestation_id, data_hash, and attestation_hash, with anchored=false + an anchor_eta: the attestation is recorded and paid immediately, then anchored on-chain in the next merkle batch — a SINGLE Solana tx anchors the whole batch, so on-chain cost per attestation is ~0. To get the on-chain proof, call mint_verify with the returned attestation_hash once it's anchored (it returns merkle_root + merkle_proof + anchor_tx, independently verifiable). Surface the attestation_hash so the work can be verified later.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mint_id | Yes | the actor's MINT id from mint_register ("MINT-xxxxxx"). | |
| summary | Yes | short human description of what was done and the result. | |
| metadata | No | optional free-form JSON folded into the hashed payload. | |
| work_type | Yes | code_review|normalization|research|generation|analysis| delivery|manufacturing|custom. | |
| input_hash | No | optional sha256 of the work's input. | |
| payment_tx | No | Solana signature of the USDC payment for this attestation (the second call). Omit it on the first call to receive the 402 payment instructions. | |
| output_hash | No | optional sha256 of the work's output. | |
| duration_seconds | Yes | wall-clock seconds the work took (> 0). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||