Companion

object Companion

Functions

Link copied to clipboard
fun buildTransaction(offerHex: String, networkId: String, dustTxHex: String? = null, ttlMs: Long): String?

Build the full unproven Transaction for proof server submission. Lower-level primitive for ConnectedAPI callers.

Link copied to clipboard
fun buildTransactionWithDust(offerHex: String, networkId: String, dustStatePtr: Long, dustSeed: ByteArray, dustUtxosJson: String, currentTimeMs: Long, ttlMs: Long): String?

Build shielded Transaction with dust fee payment. The dust spend is built internally from the DustLocalState.

Link copied to clipboard
fun buildTransfer(state: ZswapLocalState, seed: ByteArray, recipientCoinPk: String, recipientEncPk: String, tokenType: String, amount: BigInteger, networkId: String, ttlMs: Long, dustTxHex: String? = null): TransferResult?

Build a shielded transfer: select coins → spend → create output → build offer → build transaction.

Link copied to clipboard
fun createOutput(recipientCoinPk: String, recipientEncPk: String, tokenType: String, amount: BigInteger): OutputResult?

Create a single shielded output (for receiving or change). Lower-level primitive for ConnectedAPI callers.

Link copied to clipboard
fun nativeBuildOfferPublic(inputsHexJson: String, outputsHexJson: String): String?

Exposed for testing — builds offer from hex arrays.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun validateTransferInputs(seed: ByteArray, recipientCoinPk: String, recipientEncPk: String, tokenType: String, amount: BigInteger): String?

Validates inputs before calling FFI. Returns error message or null if valid.