Result

sealed interface Result

Outcome of building a dust registration transaction.

A registration SELF-PAYS its own fee from the selected NIGHT coin's "generationless" dust, which starts at ~0 on a brand-new coin and grows as the coin ages. The native builder is given the live ledger params and refuses to emit a tx the coin can't afford (which the node would reject as BalanceCheckOverspend / error 138), surfacing NotMatured instead — so the caller can wait for the coin to age and retry rather than submitting a doomed transaction.

Inheritors

Types

Link copied to clipboard

Signed SCALE hex ready for proving/submission.

Link copied to clipboard

Build failed (bad inputs, native error).

Link copied to clipboard
data class NotMatured(val shortfallSpecks: BigInteger) : DustRegistrationBuilder.Result

The selected coin can't yet self-pay; shortfallSpecks is how much dust it still needs.