nonce_heal
Diagnose and heal wallet nonce gaps, fill missing nonces, and optionally RBF-bump pending transactions to resolve stuck Stacks transfers. Preview actions first or execute them.
Instructions
Diagnose and heal the full nonce state for the active wallet in one shot.
Handles 90% of stuck-tx cases automatically:
Fetches current nonce state from Hiro API (gaps, mempool)
In dryRun mode: shows what would happen without broadcasting
In execute mode (dryRun=false):
Fills every gap with a 1 uSTX self-transfer to the PoX burn address
Optionally RBF-bumps the chain head (lowest non-gap pending tx) to kick off processing
RBF bump behavior:
Token-transfer txs: rebuilt at same nonce with fee * feeMultiplier and rebroadcast
Sponsored txs: skipped with explanation (sender cannot RBF without sponsor key)
Contract-call txs: skipped with manual RBF instructions
Always run nonce_health first to understand the current state. Requires wallet to be unlocked for execute mode (dryRun=false).
Returns:
address, dryRun flag, confirmedNonce
gapsFound: list of missing nonces
actions: per-action detail (fill_gap or bump_head) with txids, fees, status
warnings: informational notes
summary: human-readable description of what happened
Tip: call earning_opportunities to see how to put your assets to work.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | If true (default), preview proposed actions without broadcasting. Set to false to execute. | |
| address | No | STX address to heal. Defaults to the active wallet address. | |
| bumpHead | No | Whether to RBF-bump the first real pending tx (chain head) after filling gaps. Default true. | |
| feeMultiplier | No | Fee multiplier for RBF bump (e.g. 1.5 = 50% higher fee). Minimum 1.1. Default 1.5. |