Find a valid PoW nonce
find_nonceGrind nonce values locally to find one meeting the live mining difficulty for Spirit Cards, then return it to submit to mine(); it does not send a transaction.
Instructions
Grind nonce = 0,1,2,... locally until leadingZeroBits(work) >= the live required difficulty. Bounded by maxAttempts (default 1,000,000, hard cap 5,000,000) and a ~20s wall-clock cap. Read-only; returns the nonce to submit to mine(); it does not send a transaction.
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": {
"miner": "<miner>"
},
"name": "find_nonce"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| miner | Yes | miner address used in the preimage | |
| maxAttempts | No |