Documentation ¶
Index ¶
- type ChainSpec
- type ExecutionClient
- func (ec *ExecutionClient) GetBalanceAt(ctx context.Context, wallet common.Address, blockNumber *big.Int) (*big.Int, error)
- func (ec *ExecutionClient) GetBlockByHash(ctx context.Context, hash common.Hash) (*types.Block, error)
- func (ec *ExecutionClient) GetBlockReceipts(ctx context.Context, blockHash common.Hash) ([]*types.Receipt, error)
- func (ec *ExecutionClient) GetChainSpec(ctx context.Context) (*ChainSpec, error)
- func (ec *ExecutionClient) GetClientVersion(ctx context.Context) (string, error)
- func (ec *ExecutionClient) GetEthCall(ctx context.Context, msg ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)
- func (ec *ExecutionClient) GetEthClient() *ethclient.Client
- func (ec *ExecutionClient) GetLatestBlock(ctx context.Context) (*types.Block, error)
- func (ec *ExecutionClient) GetNodeSyncing(ctx context.Context) (*SyncStatus, error)
- func (ec *ExecutionClient) GetNonceAt(ctx context.Context, wallet common.Address, blockNumber *big.Int) (uint64, error)
- func (ec *ExecutionClient) GetTransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)
- func (ec *ExecutionClient) Initialize(ctx context.Context) error
- func (ec *ExecutionClient) SendTransaction(ctx context.Context, tx *types.Transaction) error
- type SyncStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecutionClient ¶
type ExecutionClient struct {
// contains filtered or unexported fields
}
func NewExecutionClient ¶
func NewExecutionClient(name, url string, headers map[string]string) (*ExecutionClient, error)
NewExecutionClient is used to create a new execution client
func (*ExecutionClient) GetBalanceAt ¶
func (*ExecutionClient) GetBlockByHash ¶
func (*ExecutionClient) GetBlockReceipts ¶ added in v0.0.12
func (*ExecutionClient) GetChainSpec ¶
func (ec *ExecutionClient) GetChainSpec(ctx context.Context) (*ChainSpec, error)
func (*ExecutionClient) GetClientVersion ¶
func (ec *ExecutionClient) GetClientVersion(ctx context.Context) (string, error)
func (*ExecutionClient) GetEthCall ¶ added in v0.0.12
func (*ExecutionClient) GetEthClient ¶
func (ec *ExecutionClient) GetEthClient() *ethclient.Client
func (*ExecutionClient) GetLatestBlock ¶
func (*ExecutionClient) GetNodeSyncing ¶
func (ec *ExecutionClient) GetNodeSyncing(ctx context.Context) (*SyncStatus, error)
func (*ExecutionClient) GetNonceAt ¶
func (*ExecutionClient) GetTransactionReceipt ¶
func (*ExecutionClient) Initialize ¶
func (ec *ExecutionClient) Initialize(ctx context.Context) error
func (*ExecutionClient) SendTransaction ¶
func (ec *ExecutionClient) SendTransaction(ctx context.Context, tx *types.Transaction) error
type SyncStatus ¶
type SyncStatus struct { IsSyncing bool StartingBlock uint64 CurrentBlock uint64 HighestBlock uint64 }
func (*SyncStatus) Percent ¶
func (s *SyncStatus) Percent() float64
Click to show internal directories.
Click to hide internal directories.