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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| miner | Yes | miner address used in the preimage | |
| maxAttempts | No |