Documentation ¶
Index ¶
- func GetBytecode(ctx context.Context, client *clients.EthClient, clientId *big.Int, ...) ([]byte, error)
- func GetReceiptByHash(ctx context.Context, client *clients.EthClient, clientId *big.Int, ...) (*types.Receipt, error)
- func GetTransactionByHash(ctx context.Context, client *clients.EthClient, clientId *big.Int, ...) (*types.Transaction, bool, error)
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 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.