Find a valid nonce
find_nonceGrind a proof-of-work nonce for a miner address so it can mint immediately: work = keccak256(chainId ‖ core ‖ miner ‖ nonce), using the live requiredBits threshold. Returns the first nonce whose work has at least requiredBits leading zero bits, within a ~20 s wall-clock cap. If the difficulty is high it may return found:false — retry or lower maxAttempts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| miner | Yes | Miner address (0x…) | |
| maxAttempts | No | Maximum number of nonces to try (1000–5,000,000) |