transaction

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2022 License: LGPL-3.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateTxHash

func UpdateTxHash(tx *api.TransactionExtention) error

Types

type Log

type Log struct {
	Address address.Address
	Topics  []string
	Data    string
}

type Transaction

type Transaction struct {
	TransactionHash string
	Transaction     *api.TransactionExtention
	Result          *api.Return
}

type TransactionReceipt

type TransactionReceipt struct {
	TxId                          string
	Result                        core.TransactionInfoCode
	Fee                           int64
	BlockNumber                   int64
	BlockTimeStamp                int64
	ComtractAddress               string
	Receipt                       *core.ResourceReceipt
	Logs                          []Log
	ResMessage                    []byte
	AssetIssueID                  string
	WithdrawAmount                int64
	UnfreezeAmount                int64
	InternalTransactions          []*core.InternalTransaction
	ExchangeReceivedAmount        int64
	ExchangeInjectAnotherAmount   int64
	ExchangeWithdrawAnotherAmount int64
	ExchangeId                    int64
	ShieldedTransactionFee        int64
}

func GetTransactionReceipt

func GetTransactionReceipt(tx *core.TransactionInfo) (*TransactionReceipt, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL