Balance

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.

Midnight wallet has 3 address types:

  1. Shielded - Private ZK balance (mn_shield_addr_...)

  2. Unshielded - Transparent balance (mn_addr_...)

  3. Dust - Small amounts for fees (mn_dust_...)

Constructors

Link copied to clipboard
constructor(shielded: BigInteger = BigInteger.ZERO, unshielded: BigInteger = BigInteger.ZERO, dust: BigInteger = BigInteger.ZERO, tokenType: String = "MIDNIGHT")

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Dust balance for transaction fees

Link copied to clipboard

Shielded (private) balance in dust (1 MIDNIGHT = 1,000,000 dust)

Link copied to clipboard

Token type (default: "MIDNIGHT")

Link copied to clipboard

Total balance across all address types.

Link copied to clipboard

Unshielded (transparent) balance in dust

Functions

Link copied to clipboard

Convert dust to MIDNIGHT (divide by 1,000,000).