grpc

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToBlockNumArg

func ToBlockNumArg(number *big.Int) string

Types

type BorGRPCClient

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

func NewBorGRPCClient

func NewBorGRPCClient(address string) *BorGRPCClient

func (*BorGRPCClient) BlockByNumber

func (h *BorGRPCClient) BlockByNumber(ctx context.Context, blockID int64) (*ethTypes.Block, error)

func (*BorGRPCClient) BorBlockReceipt

func (h *BorGRPCClient) BorBlockReceipt(ctx context.Context, txHash common.Hash) (*ethTypes.Receipt, error)

func (*BorGRPCClient) Close

func (h *BorGRPCClient) Close()

func (*BorGRPCClient) GetRootHash

func (h *BorGRPCClient) GetRootHash(ctx context.Context, startBlock uint64, endBlock uint64) (string, error)

func (*BorGRPCClient) GetVoteOnHash

func (h *BorGRPCClient) GetVoteOnHash(ctx context.Context, startBlock uint64, endBlock uint64, rootHash string, milestoneId string) (bool, error)

func (*BorGRPCClient) HeaderByNumber

func (h *BorGRPCClient) HeaderByNumber(ctx context.Context, blockID int64) (*ethTypes.Header, error)

func (*BorGRPCClient) TransactionReceipt

func (h *BorGRPCClient) TransactionReceipt(ctx context.Context, txHash common.Hash) (*ethTypes.Receipt, error)

Jump to

Keyboard shortcuts

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