Sponsoring Builder
Functions
Link copied to clipboard
fun addAccountSigner(signerAddress: AccountKeyPair, signerWeight: Int): SponsoringBuilder
Content copied to clipboard
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
Content copied to clipboard
Add an asset (trustline) to the account.
Link copied to clipboard
Adds operation to this builder
Link copied to clipboard
fun createAccount(newAccount: AccountKeyPair, startingBalance: ULong): SponsoringBuilder
Content copied to clipboard
Create an account in the network.
Link copied to clipboard
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
Content copied to clipboard
Remove signer from the account.
Link copied to clipboard
Remove an asset (trustline) from the account.
Link copied to clipboard