balanceAndSubmit
open suspend fun balanceAndSubmit(provenTxHex: String, onProgress: suspend (BalanceProgress) -> Unit? = null)
Balance and submit a proven transaction in one operation.
Implementations can override this to add retry logic for recoverable errors (e.g., error 170 InvalidDustSpendProof due to stale Merkle root). The default implementation simply calls balanceTransaction then submitTransaction.
Parameters
provenTxHex
Hex-encoded proven (but unsealed) transaction
onProgress
Optional callback for granular progress updates. DApp developers use this to show users what's happening during the long balance+submit pipeline. See BalanceProgress for available stages.