Anchor a file hash
anchor_hashPaid with x402 (USDC on Base). Writes the SHA-256 hash of a file on-chain; the block time becomes the proof of existence. Compute the hash locally and never send the file. The hash, the filename and the payer address become public and permanent. Without a payment in _meta["x402/payment"] the result is the payment requirement.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hash | Yes | SHA-256 of the file, 64 hex characters | |
| filename | No | Optional name to record with the hash: a-z 0-9 - _ . |