canonicalize
Canonicalize JSON with RFC 8785 and return a SHA-256 hash plus an EIP-712 signed attestation.
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": {
"payload": "<payload>"
},
"name": "canonicalize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payload | Yes | The JSON payload stringified (e.g., '{"b":2,"a":1}') | |
| algorithm | No | sha256 |