Hash
get_hashUse when an agent needs a hash it should not compute itself. Returns SHA-256, Keccak-256 (the Ethereum hash) or BLAKE2b-512 of UTF-8 text or hex bytes, as hex and 0x-hex. Input up to 2 KB; over that is a 400, never billed. Costs 0.005 USDC per call (x402, USDC on Solana, Base, Polygon, Arbitrum or Arc).
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": {
"alg": "<alg>",
"data": "<data>"
},
"name": "get_hash"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as | No | how to read data: utf8 (default) or hex bytes | |
| alg | Yes | the hash | |
| data | Yes | the input, up to 2,048 bytes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | the get_hash payload; a real captured example is free at https://x402.ochinimus.app/api/sample/get_hash | |
| tool | Yes | the tool that produced this payload |