LedgerEvent
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.
Represents a single event on the Midnight ledger (coinbase, transfer, shield, unshield, etc.)
Input Validation:
idmust be non-negativeamountmust be positive (cannot transfer 0 or negative tokens)tokenTypecannot be blanksendermust be null for COINBASE events, non-null otherwisereceivercannot be blankblockHeightmust be non-negativetimestampmust be positive
Throws
if validation fails