mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-11 05:30:07 +00:00
28908aa3cf
Signed-off-by: Elizaveta Chichindaeva <elizaveta@nspcc.ru>
27 lines
944 B
Go
27 lines
944 B
Go
package ledger
|
|
|
|
import "github.com/nspcc-dev/neo-go/pkg/interop"
|
|
|
|
// Transaction represents a NEO transaction. It's similar to Transaction class
|
|
// in Neo .net framework.
|
|
type Transaction struct {
|
|
// Hash represents the hash (256 bit BE value in a 32 byte slice) of the
|
|
// given transaction (which also is its ID).
|
|
Hash interop.Hash256
|
|
// Version represents the transaction version.
|
|
Version int
|
|
// Nonce is a random number to avoid hash collision.
|
|
Nonce int
|
|
// Sender represents the sender (160 bit BE value in a 20 byte slice) of the
|
|
// given Transaction.
|
|
Sender interop.Hash160
|
|
// SysFee represents the fee to be burned.
|
|
SysFee int
|
|
// NetFee represents the fee to be distributed to consensus nodes.
|
|
NetFee int
|
|
// ValidUntilBlock is the maximum blockchain height exceeding which
|
|
// a transaction should fail verification.
|
|
ValidUntilBlock int
|
|
// Script represents a code to run in NeoVM for this transaction.
|
|
Script []byte
|
|
}
|