erigon-pulse/cmd/rpcdaemon/commands/net_api.go
Chase Wright 9d3c641664
Update Supported JSON-RPC calls in README (#983)
* Update Supported JSON-RPC calls in README

* Fix Hyperlinks
* Update list

* Include net / net_version

* Rename net.go to net_api.go

* Fix hyperlink for renamed net_api.go file
2020-08-27 19:19:58 +01:00

23 lines
358 B
Go

package commands
import (
"context"
"github.com/ledgerwatch/turbo-geth/ethdb"
)
type NetAPI interface {
Version(ctx context.Context) (string, error)
}
type NetAPIImpl struct {
ethBackend ethdb.Backend
}
// NwtNetAPIImpl returns NetAPIImplImpl instance
func NewNetAPIImpl(eth ethdb.Backend) *NetAPIImpl {
return &NetAPIImpl{
ethBackend: eth,
}
}