x420_hash_digest
Computes SHA-256, SHA-512, SHA-1, MD5, or Keccak-256 digests from supplied text or base64 bytes for integrity checks; returns hex digests and a signed receipt as JSON.
Instructions
Hash digest: sha256 / sha512 / sha1 / md5 / keccak256 of supplied text or base64 bytes. Pure computation, nothing stored. Not professional, legal, insurance, engineering, medical, financial or tax advice. PAID: $0.01 USDC per call, settled on Base via x402 from the wallet in X420_MCP_WALLET_PRIVATE_KEY (real money). Returns: JSON: algorithm, bytes, digests{alg: hex} - the deliverable plus X420's signed receipt and the settlement transaction. Example input: {"text":"hello","algorithm":"all"}.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "x420_hash_digest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | UTF-8 text to hash (default: none; supply base64 instead) | |
| base64 | No | base64-encoded bytes to hash (default: none; supply text instead) | |
| algorithm | No | sha256 (default), sha512, sha1, md5, keccak256 or all |