Versions in this module Expand all Collapse all v1 v1.0.2 Aug 16, 2022 v1.0.1 Aug 8, 2022 Changes in this version + const TransactionNonceLength + func HashToShortHash(hash common.Uint256, salt []byte, size uint32) []byte + func NewCoinbase(sender common.Uint160, recievers [7]common.Uint160, totalAmount common.Fixed64, ...) *pb.Coinbase + func NewDeleteName(registrant []byte, name string) *pb.DeleteName + func NewGenerateID(publicKey, sender []byte, regFee common.Fixed64, version int32) *pb.GenerateID + func NewIssueAsset(sender common.Uint160, name, symbol string, precision uint32, ...) *pb.IssueAsset + func NewMsgTx(payload *pb.Payload, nonce uint64, fee common.Fixed64, attrs []byte) *pb.Transaction + func NewNanoPay(sender, recipient common.Uint160, id uint64, amount common.Fixed64, ...) *pb.NanoPay + func NewRegisterName(registrant []byte, name string, fee int64) *pb.RegisterName + func NewSigChainTxn(sigChain []byte, submitter common.Uint160) *pb.SigChainTxn + func NewSubscribe(subscriber []byte, id, topic string, duration uint32, meta string) *pb.Subscribe + func NewSwapAsset(sender, recipient common.Uint160, amount common.Fixed64) *pb.SwapAsset + func NewTransferAsset(sender, recipient common.Uint160, amount common.Fixed64) *pb.TransferAsset + func NewTransferName(registrant []byte, receipt []byte, name string) *pb.TransferName + func NewUnsubscribe(subscriber []byte, id, topic string) *pb.Unsubscribe + func Pack(plType pb.PayloadType, payload proto.Message) (*pb.Payload, error) + func Unpack(payload *pb.Payload) (proto.Message, error) + type Transaction struct + func NewDeleteNameTransaction(registrant []byte, name string, nonce uint64, fee common.Fixed64) (*Transaction, error) + func NewGenerateIDTransaction(publicKey, sender []byte, regFee common.Fixed64, version int32, nonce uint64, ...) (*Transaction, error) + func NewIssueAssetTransaction(sender common.Uint160, name, symbol string, totalSupply common.Fixed64, ...) (*Transaction, error) + func NewNanoPayTransaction(sender, recipient common.Uint160, id uint64, amount common.Fixed64, ...) (*Transaction, error) + func NewRegisterNameTransaction(registrant []byte, name string, nonce uint64, regFee common.Fixed64, ...) (*Transaction, error) + func NewSigChainTransaction(sigChain []byte, submitter common.Uint160, nonce uint64) (*Transaction, error) + func NewSubscribeTransaction(subscriber []byte, identifier string, topic string, duration uint32, ...) (*Transaction, error) + func NewSwapAssetTransaction(sender, recipient common.Uint160, nonce uint64, value, fee common.Fixed64) (*Transaction, error) + func NewSwapRDCAssetTransaction(sender, recipient common.Uint160, nonce uint64, value, fee common.Fixed64) (*Transaction, error) + func NewTransferAssetTransaction(sender, recipient common.Uint160, nonce uint64, value, fee common.Fixed64) (*Transaction, error) + func NewTransferNameTransaction(registrant []byte, to []byte, name string, nonce uint64, fee common.Fixed64) (*Transaction, error) + func NewTransferRDCAssetTransaction(sender, recipient common.Uint160, nonce uint64, value, fee common.Fixed64) (*Transaction, error) + func NewUnsubscribeTransaction(subscriber []byte, identifier string, topic string, nonce uint64, ...) (*Transaction, error) + func (tx *Transaction) DeserializeUnsigned(r io.Reader) error + func (tx *Transaction) GetInfo() ([]byte, error) + func (tx *Transaction) GetMessage() []byte + func (tx *Transaction) GetProgramHashes() ([]common.Uint160, error) + func (tx *Transaction) GetPrograms() []*pb.Program + func (tx *Transaction) GetSize() uint32 + func (tx *Transaction) Hash() common.Uint256 + func (tx *Transaction) Marshal() (buf []byte, err error) + func (tx *Transaction) SerializeUnsigned(w io.Writer) error + func (tx *Transaction) SetHash(hash common.Uint256) + func (tx *Transaction) SetPrograms(programs []*pb.Program) + func (tx *Transaction) ShortHash(salt []byte, size uint32) []byte + func (tx *Transaction) Unmarshal(buf []byte) error + func (txn *Transaction) VerifySignature() error