transactions

package
v0.0.0-...-624ac36 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EstimateGas

func EstimateGas(client ethclient.Client, ctx context.Context, opts ...gasOpts) uint64

func ExtractPublicKey

func ExtractPublicKey() common.Address

func GetTransactions

func GetTransactions(block *types.Block, client ethclient.Client, ctx context.Context)

func LoadPrivateKey

func LoadPrivateKey() *ecdsa.PrivateKey

func SetNonce

func SetNonce(client ethclient.Client, ctx context.Context, from_addr common.Address) uint64

func SetupTransfer

func SetupTransfer(client ethclient.Client, ctx context.Context)

func SignTransaction

func SignTransaction(client ethclient.Client, ctx context.Context, tx *types.Transaction, private_key *ecdsa.PrivateKey) *types.Transaction

func SimulateBlock

func SimulateBlock(client ethclient.Client, ctx context.Context) *types.Block

func ToWei

func ToWei(iamount interface{}, amnt float64, decimals int) *big.Int

ToWei decimals to wei

func TransferErc20

func TransferErc20(client ethclient.Client, ctx context.Context, from_address common.Address, to_address common.Address, amount int)

func TxCount

func TxCount(client ethclient.Client, ctx context.Context, block_hash common.Hash) uint

Types

This section is empty.

Jump to

Keyboard shortcuts

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