retrieval

package
v0.0.0-...-0ab5495 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Retrieval

type Retrieval struct {
	// contains filtered or unexported fields
}

Retrieval represents the data retrieval functionality

func NewRetrieval

func NewRetrieval(alchemyAPIKey string) (*Retrieval, error)

NewRetrieval creates a new instance of Retrieval

func (*Retrieval) Close

func (r *Retrieval) Close()

Close closes the Ethereum client connection

func (*Retrieval) RetrieveBlockByNumber

func (r *Retrieval) RetrieveBlockByNumber(blockNumber *big.Int) (*types.Block, error)

RetrieveBlockByNumber retrieves a block by its block number

func (*Retrieval) RetrieveTransactionReceipt

func (r *Retrieval) RetrieveTransactionReceipt(txHash common.Hash) (*types.Receipt, error)

RetrieveTransactionReceipt retrieves the transaction receipt for a given transaction hash

Jump to

Keyboard shortcuts

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