Verify craft commit
verify_craft_commitRecompute the commit hash from choices and salt and compare it to the on-chain choicesHash, without sending a transaction. Also reveals settlement flags, player, boost tier, and reveal window.
Instructions
Verify a crafting commit WITHOUT sending a transaction: reads commits(commitId) from the CraftingController, recomputes keccak256(abi.encode(choices, salt)) the same way the contract does, and reports whether it matches the on-chain choicesHash, plus settlement flags, player, boost tier and the reveal window.
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": {
"commitId": "<commitId>",
"choices": "<choices>",
"salt": "<salt>"
},
"name": "verify_craft_commit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| salt | Yes | 32-byte client secret (0x + 64 hex) used at commit. | |
| choices | Yes | Reveal choices as [slot, parent] pairs, in the exact order hashed at commit. | |
| commitId | Yes | 1-based commit id (see CraftingController.lastCommitId()). |