Skip to main content

TimelockedIotaBalance

open class TimelockedIotaBalance : Disposable, AutoCloseable, TimelockedIotaBalanceInterface

A typed view of an on-chain 0x2::timelock::TimeLock<Balance<IOTA>> object — a time-locked IOTA balance, e.g. Stardust vested rewards.

Functions

NameSummary
close@Synchronized
open override fun close()
destroyopen override fun destroy()
expirationTimestampMsopen override fun expirationTimestampMs(): ULong
Epoch timestamp (ms) of when the lock expires.
idopen override fun id(): ObjectId
The object's ID.
labelopen override fun label(): String?
lockedopen override fun locked(): ULong
The locked IOTA amount in nanos.
toStringopen override fun toString(): String

Companion object functions

NameSummary
tryFromBcsfun tryFromBcs(bytes: ByteArray): TimelockedIotaBalance
Decode from BCS bytes, without validating the on-chain type tag.
tryFromObjectfun tryFromObject(object: Object): TimelockedIotaBalance
Decode from an on-chain object, validating its Move type tag.