Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
A minimal structure of a Transaction in a blockchain system
data class Transaction (
var hash: String = "",
var type: TYPE = TYPE.REGULAR,
var inputs: Array<TransactionInput> = emptyArray(),
var outputs: Array<TransactionOutput> = emptyArray()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment