Module agora.consensus.data.Transaction

Defines the data structure of a transaction

A Transaction's Output contains the lock script, whereas the Input contains the unlock script.

In case of simple payment transactions, the lock & unlock pairs are simple byte arrays containing the key and the signature.

Functions

NameDescription
getSumOutput(tx, acc) Get sum of Output

Structs

NameDescription
Input The input of the transaction, which spends a previously received Output
Output Represents an entry in the UTXO
Transaction Represents a transaction (shortened as 'tx')
TransactionResult The information of the result of posting a transaction

Enums

NameDescription
OutputType Indicates if output is frozen (staking), payment (spending) or coinbase (rewards / fees)