SponsoringBuilder

class SponsoringBuilder : CommonTransactionBuilder<SponsoringBuilder>

Functions

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

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()): SponsoringBuilder

Add an asset (trustline) to the account.

Link copied to clipboard
fun addOperation(operation: ManageBuyOfferOperation): SponsoringBuilder
fun addOperation(operation: ManageDataOperation): SponsoringBuilder
fun addOperation(operation: ManageSellOfferOperation): SponsoringBuilder
fun addOperation(operation: SetOptionsOperation): SponsoringBuilder

Adds operation to this builder

Link copied to clipboard
fun createAccount(newAccount: AccountKeyPair, startingBalance: ULong): SponsoringBuilder

Create an account in the network.

Link copied to clipboard
fun lockAccountMasterKey(): SponsoringBuilder

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): SponsoringBuilder

Remove signer from the account.

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

Remove an asset (trustline) from the account.

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

Properties

Link copied to clipboard
open override val operations: MutableList<Operation>