serializeWithDust
fun serializeWithDust(inputs: List<UtxoSpend>, outputs: List<UtxoOutput>, signatures: List<ByteArray>, dustState: DustLocalState, seed: ByteArray, dustUtxosJson: String, ttl: Long): String
Serialize a signed transaction with Dust fee payment to SCALE codec hex.
This method calls the Rust FFI that creates real DustActions by calling state.spend() on the provided DustLocalState.
Return
Hex-encoded SCALE bytes (without "0x" prefix)
Parameters
inputs
Transaction inputs
outputs
Transaction outputs
signatures
Signature ByteArrays (one per input, 64 bytes each)
dustState
DustLocalState with available dust
seed
32-byte seed for deriving DustSecretKey
dustUtxosJson
JSON array of {utxo_index, v_fee} selections
ttl
Transaction time-to-live (milliseconds)
Throws
if parameters are invalid
if serialization fails