Documentation ¶
Index ¶
- type Chain
- type EthRPC
- func (c *EthRPC) GetBlock(ctx context.Context, blockNumber uint64) (*types.Block, error)
- func (c *EthRPC) GetBlocks(ctx context.Context, blockNumbers []uint64) ([]*types.Block, error)
- func (c *EthRPC) GetLatestBlock(ctx context.Context) (uint64, error)
- func (c *EthRPC) GetReceipts(ctx context.Context, blockNumber *big.Int) (types.Receipts, error)
- func (c *EthRPC) GetTransaction(ctx context.Context, txHash common.Hash) (*types.Transaction, error)
- func (c *EthRPC) Provider() *ethutils.Provider
- type EthRPCOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chain ¶
type Chain interface { GetBlocks(context.Context, []uint64) ([]*types.Block, error) GetBlock(context.Context, uint64) (*types.Block, error) GetLatestBlock(context.Context) (uint64, error) GetTransaction(context.Context, common.Hash) (*types.Transaction, error) GetReceipts(context.Context, *big.Int) (types.Receipts, error) // Expose provider until we eject from celoutils Provider() *ethutils.Provider }
func NewRPCFetcher ¶
func NewRPCFetcher(o EthRPCOpts) (Chain, error)
type EthRPC ¶
type EthRPC struct {
// contains filtered or unexported fields
}
func (*EthRPC) GetLatestBlock ¶
func (*EthRPC) GetReceipts ¶
func (*EthRPC) GetTransaction ¶
type EthRPCOpts ¶
Click to show internal directories.
Click to hide internal directories.