build
Builds a complete dust registration transaction.
Creates and signs a transaction that registers the given NIGHT address for dust generation with the specified DustPublicKey. Includes the user's NIGHT UTXOs as a guaranteed UnshieldedOffer.
Return
a Result: Result.Built on success, Result.NotMatured when the coin is too fresh to self-pay, Result.Failed on any other error.
Parameters
32-byte NIGHT address signing key
Hex-encoded DustPublicKey (from DustKeyDeriver)
JSON array of NIGHT UTXOs: {"value":"...","intent_hash":"...","output_no":N}
Transaction time-to-live in milliseconds since epoch
Target network id (HRP-less), e.g. "undeployed"/"preprod"
Current time in milliseconds since epoch
Hex-encoded SCALE ledger parameters from the indexer (getCurrentBlockWithParams().ledgerParameters). When supplied, the native builder gates on coin maturity and returns Result.NotMatured for a too-fresh coin. Pass null only where no params are available (the gate is then skipped).
Throws
if nightPrivateKey is not 32 bytes