xchain_commit_guess
[STATE] Commit your guess for a cross-chain match. Unlike the same-chain games, YOU generate and keep the preimage: 32 random bytes R, guess in the low bit of the last byte (0 = same-team, 1 = diff-team) — the shared encoding from the server instructions. Pass commit = 0x + SHA-256(R), keep R secret. Returns {both_committed}; then xchain_gameplay_status for the step-2 checkpoint.
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": {
"commit": "<commit>"
},
"name": "xchain_commit_guess"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commit | Yes | `0x` SHA-256 of your guess preimage. Generate a random 32-byte preimage whose last bit encodes your guess (0 = same-team, 1 = diff-team), keep it secret, and submit its SHA-256 here. | |
| poll_handle | No | The poll_handle returned by xchain_find_match. Pass it so the server acts by an unguessable secret, not your public wallet. Optional during rollout. |