blockdaemon

package
v0.0.0-...-805313b Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

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

func NewProvider

func NewProvider(rpcClient rpc.Client) *Provider

func (*Provider) GetBlockByHash

func (p *Provider) GetBlockByHash(ctx context.Context, blockHash string, fullTransaction bool) (*response.BlockByHashResponse, error)

func (*Provider) GetBlockByNumber

func (p *Provider) GetBlockByNumber(ctx context.Context, blockNumberHex string, fullTransaction bool) (*response.BlockByNumberResponse, error)

func (*Provider) GetBlockNumber

func (p *Provider) GetBlockNumber(ctx context.Context) (*response.BlockNumberResponse, error)

func (*Provider) GetTransactionByHash

func (p *Provider) GetTransactionByHash(ctx context.Context, transactionHash string) (*response.TransactionByHashResponse, error)

func (*Provider) GetTransactionReceipt

func (p *Provider) GetTransactionReceipt(ctx context.Context, transactionHash string) (*response.TransactionReceiptResponse, error)

Jump to

Keyboard shortcuts

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