Package-level declarations

Types

Link copied to clipboard
@Serializable
data class BlockInfo(val height: Long, val hash: String, val timestamp: Long, val eventCount: Int = 0, val ledgerParameters: String? = null)

Block metadata from Midnight blockchain.

Link copied to clipboard
sealed class DustEvent

Dust-related blockchain events from Midnight indexer.

Link copied to clipboard
data class DustSyncResult(val eventsHex: String, val lastEventId: Long, val eventCount: Int)

Result of a delta dust sync operation.

Link copied to clipboard
@Serializable
data class NetworkState(val currentBlock: Long, val maxBlock: Long, val syncProgress: Float, val isFullySynced: Boolean)

Network synchronization state.

Link copied to clipboard
@Serializable
data class RawLedgerEvent(val id: Long, val rawHex: String, val maxId: Long, val blockHeight: Long? = null, val timestamp: Long? = null)

Raw ledger event from Midnight indexer GraphQL API.

Link copied to clipboard
data class TokenBalance(val tokenType: String, val balance: BigInteger, val utxoCount: Int)

Represents the balance for a single token type.

Link copied to clipboard

Maps token identifiers from indexer API to human-readable token symbols.

Link copied to clipboard

Status of a transaction on the Midnight blockchain.

Link copied to clipboard
@Serializable
enum TransactionType : Enum<TransactionType>

Type of transaction.

Link copied to clipboard
@Serializable
data class UnshieldedTransaction(val id: Int, val hash: String, val type: TransactionType, val protocolVersion: Int, val identifiers: List<String>? = null, val block: UnshieldedTransaction.BlockInfo? = null, val fees: UnshieldedTransaction.FeeInfo? = null, val transactionResult: UnshieldedTransaction.TransactionResult? = null)

Unshielded transaction from Midnight blockchain.

Link copied to clipboard
@Serializable
sealed class UnshieldedTransactionUpdate

Update from unshielded transactions subscription.

Link copied to clipboard
@Serializable
data class Utxo(val value: String, val owner: String, val ownerPublicKey: String? = null, val tokenType: String, val intentHash: String, val outputIndex: Int, val ctime: Long, val registeredForDustGeneration: Boolean, val transactionHash: String = "")

Unshielded UTXO (Unspent Transaction Output).