submitWithFeeIncrease

suspend fun submitWithFeeIncrease(sourceAccount: SigningKeyPair, timeout: Duration, baseFeeIncrease: ULong, baseFee: ULong? = null, maxFee: ULong = Integer.MAX_VALUE.toULong(), memo: Pair<MemoType, String>? = null, buildingFunction: TransactionBuilder.() -> TransactionBuilder): Transaction

Submit transaction with a fee increase. Recommended way of creating transactions. This method repeatedly tries to submit transaction, until it's successful. When timeout is reached, base fee will be increased on the baseFeeIncrease value.

Return

transaction that has been submitted to the network.

Parameters

sourceAccount

source account of transaction. Will be used as a signer.

timeout

transaction timeout.

baseFeeIncrease

amount on which fee will be increased after timeout is reached.

baseFee

base transaction fee. If not specified, default configuration value will be used.

maxFee

maximum allowed fee. Increased fee is limited by this value.

memo

optional transaction memo.

buildingFunction

function that will build the transaction.


suspend fun submitWithFeeIncrease(sourceAddress: AccountKeyPair, timeout: Duration, baseFeeIncrease: ULong, baseFee: ULong? = null, maxFee: ULong = Integer.MAX_VALUE.toULong(), memo: Pair<MemoType, String>? = null, signerFunction: Transaction.() -> Transaction, buildingFunction: TransactionBuilder.() -> TransactionBuilder): Transaction

Submit transaction with a fee increase. Recommended way of creating transactions. This method repeatedly tries to submit transaction, until it's successful. When timeout is reached, base fee will be increased on the baseFeeIncrease value.

Return

transaction that has been submitted to the network.

Parameters

sourceAddress

source address of transaction

timeout

transaction timeout

baseFeeIncrease

amount on which fee will be increased after timeout is reached

baseFee

base transaction fee. If not specified, default configuration value will be used

maxFee

maximum allowed fee. Increased fee is limited by this value.

memo

optional transaction memo

signerFunction

function that will be used to sign the transaction

buildingFunction

function that will build the transaction