Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/** Kotlin code example for a block structure */
data class Block (
var index: Int = 0,
var hash: String = "",
var previousHash: String = "0",
var timestamp: Long = 0,
var nonce: Int = 0,
var numTx: Int = 0,
var transactions: Array<Transaction> = emptyArray()
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment