CommonTransactionBuilder

abstract class CommonTransactionBuilder<T>(sourceAddress: String)

Functions

Link copied to clipboard
fun addAccountSigner(signerAddress: AccountKeyPair, signerWeight: Int): T

Add new signer to the account. Use caution when adding new signers, make sure you set the correct signer weight. Otherwise, you might lock the account irreversibly.

Link copied to clipboard
fun addAssetSupport(asset: IssuedAssetId, trustLimit: String = Long.MAX_VALUE.toBigDecimal().movePointLeft(DECIMAL_POINT_PRECISION).toPlainString()): T

Add an asset (trustline) to the account.

Link copied to clipboard
fun lockAccountMasterKey(): T

Lock the master key of the account (set its weight to 0). Use caution when locking account's master key. Make sure you have set the correct signers and weights. Otherwise, you might lock the account irreversibly.

Link copied to clipboard
fun removeAccountSigner(signerAddress: AccountKeyPair): T

Remove signer from the account.

Link copied to clipboard
fun removeAssetSupport(asset: IssuedAssetId): T

Remove an asset (trustline) from the account.

Link copied to clipboard
fun setThreshold(low: Int, medium: Int, high: Int): T

Properties

Link copied to clipboard
abstract val operations: MutableList<Operation>

Inheritors

Link copied to clipboard
Link copied to clipboard