mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
Merge b0c6a76bee into 80f7c6c299
This commit is contained in:
commit
5be68bb932
1 changed files with 5 additions and 0 deletions
|
|
@ -36,6 +36,11 @@ func NewEthereumClient(rawurl string) (client *EthereumClient, _ error) {
|
|||
return &EthereumClient{rawClient}, err
|
||||
}
|
||||
|
||||
// Get the raw ethclient.Client
|
||||
func (ec *EthereumClient) RawClient() *ethclient.Client {
|
||||
return ec.client
|
||||
}
|
||||
|
||||
// GetBlockByHash returns the given full block.
|
||||
func (ec *EthereumClient) GetBlockByHash(ctx *Context, hash *Hash) (block *Block, _ error) {
|
||||
rawBlock, err := ec.client.BlockByHash(ctx.context, hash.hash)
|
||||
|
|
|
|||
Loading…
Reference in a new issue