createExchangeOffer

fun createExchangeOffer(gid: GroupId, grpAmt: Long, askingAmt: Long, minConfirms: Int = 0): iTransaction

Create a partial transaction that offers to trade an asset (that you own) for native coin (nexa). It is expected that this wallet contains the asset, but this command will find the UTXOs and populate the transaction.

Return

iTransaction containing the partial transaction offer. The "taker" can use txCompleter to complete it. Use iTransaction.createTdppUrl to make TDPP offer request

Parameters

gid

Asset to offer

grpAmt

Quantity of asset to offer

askingAmt

Amount (in satoshis) the "taker" must supply to complete this transaction

minConfirms

Use UTXOs with at least this many confirmations