Companion
object Companion
Functions
Link copied to clipboard
Link copied to clipboard
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
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.