Package-level declarations

Types

Link copied to clipboard
abstract class AbstractTransaction(val network: Network)

Abstract base class for transaction classes.

Link copied to clipboard

Represents an account in the Stellar network with its sequence number.

Link copied to clipboard
data class AccountMergeOperation(val destination: String) : Operation

Represents an AccountMerge operation.

Link copied to clipboard
class Address(address: String)

Represents a single address in the Stellar network. An address can represent an account, contract, muxed account, claimable balance, or liquidity pool.

Link copied to clipboard
data class AllowTrustOperation(val trustor: String, val assetCode: String, val authorize: Int) : Operation

Represents an AllowTrust operation.

Link copied to clipboard
sealed class Asset : Comparable<Asset>

Base Asset class representing assets on the Stellar network.

Link copied to clipboard

Base class for issued assets (credit assets with an issuer).

Link copied to clipboard

Represents issued assets with codes 5-12 characters long.

Link copied to clipboard

Represents issued assets with codes 1-4 characters long.

Link copied to clipboard
data object AssetTypeNative : Asset

Represents the native asset of the Stellar network (Lumens/XLM).

Link copied to clipboard
object Auth

Helper class for signing Soroban authorization entries.

Link copied to clipboard

Represents a BeginSponsoringFutureReserves operation.

Link copied to clipboard
data class BumpSequenceOperation(val bumpTo: Long) : Operation

Represents a BumpSequence operation.

Link copied to clipboard
sealed class ChangeTrustAsset

Represents an asset in a change trust operation on the Stellar network.

Link copied to clipboard

Represents a ChangeTrust operation.

Link copied to clipboard
data class Claimant(val destination: String, val predicate: ClaimPredicate)

Represents a claimant for a claimable balance.

Link copied to clipboard
data class ClaimClaimableBalanceOperation(val balanceId: String) : Operation

Represents a ClaimClaimableBalance operation.

Link copied to clipboard
sealed class ClaimPredicate

Sealed class representing claim predicates for claimable balances.

Link copied to clipboard

Represents a ClawbackClaimableBalance operation.

Link copied to clipboard
data class ClawbackOperation(val from: String, val asset: Asset, val amount: String) : Operation

Represents a Clawback operation.

Link copied to clipboard
data class CreateAccountOperation(val destination: String, val startingBalance: String) : Operation

Represents a CreateAccount operation.

Link copied to clipboard
data class CreateClaimableBalanceOperation(val asset: Asset, val amount: String, val claimants: List<Claimant>) : Operation

Represents a CreateClaimableBalance operation.

Link copied to clipboard
data class CreatePassiveSellOfferOperation(val selling: Asset, val buying: Asset, val amount: String, val price: Price) : Operation

Represents a CreatePassiveSellOffer operation.

Link copied to clipboard
data class DecoratedSignature(val hint: ByteArray, val signature: ByteArray)

Represents a decorated signature on a Stellar transaction.

Link copied to clipboard
data class ExtendFootprintTTLOperation(val extendTo: Int) : Operation

Represents an ExtendFootprintTTL operation.

Link copied to clipboard

Represents a Fee Bump Transaction in the Stellar network.

Link copied to clipboard
class FeeBumpTransactionBuilder(innerTransaction: Transaction)

Builder for constructing FeeBumpTransaction instances.

Link copied to clipboard
object FriendBot

Helper object for funding test accounts using Stellar's FriendBot service.

Link copied to clipboard

Represents an Inflation operation.

Link copied to clipboard
data class InvokeHostFunctionOperation(val hostFunction: HostFunctionXdr, val auth: List<SorobanAuthorizationEntryXdr> = emptyList()) : Operation

Represents an InvokeHostFunction operation.

Link copied to clipboard
class KeyPair

Holds a Stellar keypair consisting of a public key and optionally a private key (secret seed).

Link copied to clipboard
data class LedgerBounds(val minLedger: Int, val maxLedger: Int)

LedgerBounds are Preconditions of a transaction per CAP-21

Link copied to clipboard
data class LiquidityPool(val assetA: Asset, val assetB: Asset, val fee: Int = FEE)

Represents a Liquidity Pool Parameters object on the Stellar network.

Link copied to clipboard
data class LiquidityPoolDepositOperation(val liquidityPoolId: String, val maxAmountA: String, val maxAmountB: String, val minPrice: Price, val maxPrice: Price) : Operation

Represents a LiquidityPoolDeposit operation.

Link copied to clipboard
data class LiquidityPoolWithdrawOperation(val liquidityPoolId: String, val amount: String, val minAmountA: String, val minAmountB: String) : Operation

Represents a LiquidityPoolWithdraw operation.

Link copied to clipboard
data class ManageBuyOfferOperation(val selling: Asset, val buying: Asset, val buyAmount: String, val price: Price, val offerId: Long = 0) : Operation

Represents a ManageBuyOffer operation.

Link copied to clipboard
data class ManageDataOperation(val name: String, val value: ByteArray? = null) : Operation

Represents a ManageData operation.

Link copied to clipboard
data class ManageSellOfferOperation(val selling: Asset, val buying: Asset, val amount: String, val price: Price, val offerId: Long = 0) : Operation

Represents a ManageSellOffer operation.

Link copied to clipboard
sealed class Memo

The memo contains optional extra information. It is the responsibility of the client to interpret this value.

Link copied to clipboard
class MemoHash : Memo

Represents MEMO_HASH - a 32-byte hash.

Link copied to clipboard
data class MemoId(val id: ULong) : Memo

Represents MEMO_ID - a 64-bit unsigned integer.

Link copied to clipboard
data object MemoNone : Memo

Represents MEMO_NONE - an empty memo with no additional information.

Link copied to clipboard

Represents MEMO_RETURN - a 32-byte hash intended to be interpreted as the hash of the transaction the sender is refunding.

Link copied to clipboard
class MemoText : Memo

Represents MEMO_TEXT - a UTF-8 string up to 28 bytes long.

Link copied to clipboard

Represents a multiplexed (muxed) account on Stellar's network.

Link copied to clipboard
data class Network(val networkPassphrase: String)

Network class is used to specify which Stellar network you want to use. Each network has a networkPassphrase which is hashed to every transaction id.

Link copied to clipboard
sealed class Operation

Abstract base class for all Stellar operations.

Link copied to clipboard
data class PathPaymentStrictReceiveOperation(val sendAsset: Asset, val sendMax: String, val destination: String, val destAsset: Asset, val destAmount: String, val path: List<Asset> = emptyList()) : Operation

Represents a PathPaymentStrictReceive operation.

Link copied to clipboard
data class PathPaymentStrictSendOperation(val sendAsset: Asset, val sendAmount: String, val destination: String, val destAsset: Asset, val destMin: String, val path: List<Asset> = emptyList()) : Operation

Represents a PathPaymentStrictSend operation.

Link copied to clipboard
data class PaymentOperation(val destination: String, val asset: Asset, val amount: String) : Operation

Represents a Payment operation.

Link copied to clipboard
data class Price(val numerator: Int, val denominator: Int)

Represents a price in Stellar, expressed as a fraction.

Link copied to clipboard
Link copied to clipboard
data class RevokeSponsorshipOperation(val sponsorship: Sponsorship) : Operation

Represents a RevokeSponsorship operation.

Link copied to clipboard
data class SetOptionsOperation(val inflationDestination: String? = null, val clearFlags: Int? = null, val setFlags: Int? = null, val masterKeyWeight: Int? = null, val lowThreshold: Int? = null, val mediumThreshold: Int? = null, val highThreshold: Int? = null, val homeDomain: String? = null, val signer: SignerKey? = null, val signerWeight: Int? = null) : Operation

Represents a SetOptions operation.

Link copied to clipboard
data class SetTrustLineFlagsOperation(val trustor: String, val asset: Asset, val clearFlags: Int? = null, val setFlags: Int? = null) : Operation

Represents a SetTrustLineFlags operation.

Link copied to clipboard
sealed class SignerKey

Represents a Stellar signer key used for transaction authorization.

Link copied to clipboard
sealed class Sponsorship

Sealed class representing the different types of sponsorships that can be revoked.

Link copied to clipboard
object StrKey

StrKey is a helper class for encoding and decoding Stellar keys to/from strings. Stellar uses a base32 encoding with checksums called "strkey" for human-readable keys.

Link copied to clipboard
data class TimeBounds(val minTime: Long, val maxTime: Long)

TimeBounds represents the time interval that a transaction is valid.

Link copied to clipboard

Represents a transaction in the Stellar network.

Link copied to clipboard
class TransactionBuilder(val sourceAccount: TransactionBuilderAccount, val network: Network)

Builds a new Transaction following the builder pattern.

Link copied to clipboard

Specifies interface for Account object used in Transaction building.

Link copied to clipboard
data class TransactionPreconditions(val timeBounds: TimeBounds? = null, val ledgerBounds: LedgerBounds? = null, val minSequenceNumber: Long? = null, val minSequenceAge: Long = 0, val minSequenceLedgerGap: Int = 0, val extraSigners: List<SignerKey> = emptyList())

Preconditions of a transaction per CAP-21

Link copied to clipboard
object Util

Utility functions for the Stellar SDK.