transactions

package
v0.0.0-...-90f7a23 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClientChainID

func GetClientChainID(client *ethclient.Client) *big.Int

func GetHashFromHex

func GetHashFromHex(hex string) common.Hash

func GetSingleTransactionFromTransactionHash

func GetSingleTransactionFromTransactionHash(hash common.Hash, client *ethclient.Client, withReceipt bool) string

func GetTransactionDetails

func GetTransactionDetails(client *ethclient.Client, block *types.Block, withReceipt bool) []string

func GetTransactionReceiptDetailsFromHash

func GetTransactionReceiptDetailsFromHash(hash common.Hash, client *ethclient.Client) *types.Receipt

func GetTransactionSenderAddress

func GetTransactionSenderAddress(tx *types.Transaction, chainID *big.Int) string

func GetTransactionsFromBlockHash

func GetTransactionsFromBlockHash(hash common.Hash, client *ethclient.Client, withReceipt bool) []string

func PrepareTokenTransactionData

func PrepareTokenTransactionData(methodName string, toAddr *common.Address, tokenAmountToSend int) []byte

Types

type Transaction

type Transaction struct {
	Tx              *types.Transaction
	ChainID         *big.Int
	LenTransactions string
	Index           int
}

func (Transaction) FormatTransactionDetails

func (t Transaction) FormatTransactionDetails(client *ethclient.Client, withReceipt bool) string

Jump to

Keyboard shortcuts

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