Documentation ¶
Index ¶
- type ChainClient
- func (client *ChainClient) CurrentBlock() (*types.Block, error)
- func (client *ChainClient) GetBalance(addr common.Address) *big.Int
- func (client *ChainClient) GetBlock(hash common.Hash, number uint64) *types.Block
- func (client *ChainClient) NonceAt(addr common.Address) uint64
- func (client *ChainClient) NonceAtHeight(addr common.Address, height *big.Int) uint64
- func (client *ChainClient) Start()
- func (client *ChainClient) SubscribeChainHeadEvent(ch chan<- core.ChainHeadEvent) event.Subscription
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainClient ¶
type ChainClient struct {
// contains filtered or unexported fields
}
func NewChainClient ¶
func NewChainClient(nodeconfig config.NodeConfig) (*ChainClient, error)
func (*ChainClient) CurrentBlock ¶
func (client *ChainClient) CurrentBlock() (*types.Block, error)
func (*ChainClient) GetBalance ¶
func (client *ChainClient) GetBalance(addr common.Address) *big.Int
func (*ChainClient) NonceAtHeight ¶
func (*ChainClient) Start ¶
func (client *ChainClient) Start()
func (*ChainClient) SubscribeChainHeadEvent ¶
func (client *ChainClient) SubscribeChainHeadEvent(ch chan<- core.ChainHeadEvent) event.Subscription
Click to show internal directories.
Click to hide internal directories.