Stellar

class Stellar

Functions

Link copied to clipboard
fun account(): AccountService
Link copied to clipboard
fun decodeTransaction(xdr: String): AbstractTransaction

Decode transaction from XDR

Link copied to clipboard
fun makeFeeBump(feeAddress: AccountKeyPair, transaction: Transaction, baseFee: ULong? = null): FeeBumpTransaction
Link copied to clipboard
suspend fun submitTransaction(signedTransaction: AbstractTransaction)

Submit transaction to the Stellar network.

Link copied to clipboard
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
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.

Link copied to clipboard
suspend fun transaction(sourceAddress: AccountKeyPair, timeout: Duration, baseFee: ULong? = null, memo: Pair<MemoType, String>? = null): TransactionBuilder
suspend fun transaction(sourceAddress: AccountKeyPair, baseFee: ULong? = null, memo: Pair<MemoType, String>? = null, timeBounds: TimeBounds? = null): TransactionBuilder

Creates builder that allows to form Stellar transaction, adding Stellar's operations

Properties

Link copied to clipboard
val server: Server