helpers

package
v0.0.0-...-6c8d3ff Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBytecode

func GetBytecode(ctx context.Context, client *clients.EthClient, clientId *big.Int, addr common.Address, blockNumber *big.Int) ([]byte, error)

GetBytecode retrieves the bytecode of a contract at a specific address and block number.

It takes a context.Context object (`ctx`), a clients.EthClient object (`client`), a common.Address object (`addr`) representing the contract address, and a *big.Int object (`blockNumber`) representing the block number.

If `blockNumber` is nil, the function retrieves the bytecode at the latest block.

It returns the bytecode as a byte slice and an error if the retrieval fails.

func GetReceiptByHash

func GetReceiptByHash(ctx context.Context, client *clients.EthClient, clientId *big.Int, hash common.Hash) (*types.Receipt, error)

func GetTransactionByHash

func GetTransactionByHash(ctx context.Context, client *clients.EthClient, clientId *big.Int, hash common.Hash) (*types.Transaction, bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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