Troubleshooting
Every failure gives you a stable code and a request-id that ties straight to the server log, on-chain spends are race-guarded so you never double-pay, and clear pre-flight guards stop wasted capsules before you spend $DIG.
The mental model — find your failure by its code
Every surface — the dig RPC, the dig-store CLI, DIGHUb, the chia:// loader, the SDK — maps a failure to one STABLE code. Branch on the code, never the message. One consolidated catalog covers all of them and is also published machine-readable.
Pre-flight guards (digs doctor, --dry-run, --if-changed) and resumable anchors mean a stuck or no-op publish never silently spends.
Common publishing failures
Insufficient funds, a confirm timeout (resumable — your spend isn't lost), and the non-fast-forward "remote root has advanced".
Read & verify failures
Proof mismatch, decrypt/salt errors, and not-found / decoy responses.
Wallet & session issues
Connect, re-auth, a declined request, and watch-only sessions that can't sign.