BalanceEntry

@Serializable
data class BalanceEntry(val amount: String, val authorized: Boolean, val clawback: Boolean, val lastModifiedLedgerSeq: Long, val liveUntilLedgerSeq: Long? = null)

Balance entry information for a Stellar Asset Contract account.

Contains the balance amount and authorization state for an account holding a Stellar Asset Contract token.

Constructors

Link copied to clipboard
constructor(amount: String, authorized: Boolean, clawback: Boolean, lastModifiedLedgerSeq: Long, liveUntilLedgerSeq: Long? = null)

Properties

Link copied to clipboard

The balance amount as a string (to preserve precision for large numbers)

Link copied to clipboard

Whether the account is authorized to hold and transact with this asset. For non-regulated assets, this is typically true. For regulated assets (AUTH_REQUIRED flag), the issuer must authorize accounts.

Link copied to clipboard

Whether the asset allows clawback. If true, the issuer can revoke (claw back) the asset from this account.

Link copied to clipboard

The ledger sequence number when this balance entry was last modified

Link copied to clipboard

The ledger sequence number until which this entry will live. For temporary storage, entries must be extended before this ledger or they will be archived. Null for persistent storage entries.

Functions

Link copied to clipboard

Parses the amount field as a Long value.

Link copied to clipboard

Checks if this balance entry is using temporary storage.

Link copied to clipboard
fun willBeArchivedBy(ledgerSeq: Long): Boolean

Checks if this balance entry will be archived by the specified ledger.