Package-level declarations

Types

Link copied to clipboard
data class Balance(val shielded: BigInteger = BigInteger.ZERO, val unshielded: BigInteger = BigInteger.ZERO, val dust: BigInteger = BigInteger.ZERO, val tokenType: String = "MIDNIGHT")

Wallet balance across all address types.

Link copied to clipboard

Types of ledger events.

Link copied to clipboard
data class LedgerEvent(val id: Long, val type: EventType, val amount: BigInteger, val tokenType: String = "MIDNIGHT", val sender: String? = null, val receiver: String, val blockHeight: Long, val timestamp: Long)

Deserialized ledger event from Midnight blockchain.

Link copied to clipboard
data class MidnightBalance(val shielded: Double, val unshielded: Double, val dust: Double, val tokenType: String = "MIDNIGHT")

Balance in MIDNIGHT (decimal representation).

Functions

Link copied to clipboard

Convert dust (BigInteger) to MIDNIGHT (Double).