Documentation ¶
Index ¶
- type Config
- type NodeConfig
- type Provider
- func (s *Provider) BlockByHash(ctx context.Context, hash common.Hash) (*types.Block, error)
- func (s *Provider) BlockByNumber(ctx context.Context, number *big.Int) (*types.Block, error)
- func (s *Provider) ChainID(ctx context.Context) (*big.Int, error)
- func (s *Provider) Dial() error
- func (s *Provider) TransactionDetails(ctx context.Context, txnHash common.Hash) (bool, *types.Receipt, *types.Transaction, string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Nodes []NodeConfig ChaindID int // expected ChainID so we confirm on connect.. TestMode bool }
func (*Config) AddNode ¶
func (c *Config) AddNode(nodeConfig NodeConfig)
type NodeConfig ¶
type Provider ¶
type Provider struct { *ethclient.Client Config *Config RPC *rpc.Client // contains filtered or unexported fields }
func NewProviderWithConfig ¶
func (*Provider) BlockByHash ¶ added in v1.1.7
func (*Provider) BlockByNumber ¶
Click to show internal directories.
Click to hide internal directories.