aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/api
diff options
context:
space:
mode:
authorBas van Kervel <bas@ethdev.com>2015-06-08 20:50:11 +0800
committerBas van Kervel <basvankervel@gmail.com>2015-06-11 20:40:38 +0800
commit1fe617fa5791bffb6b3cc60636c6629c7aca36d3 (patch)
treec48fdc640e538efef40ff75aefcc953aa6c3bba0 /rpc/api
parent87dace1fa96ed4426ea963ba4f9559c05bf42e35 (diff)
downloadgo-tangerine-1fe617fa5791bffb6b3cc60636c6629c7aca36d3.tar
go-tangerine-1fe617fa5791bffb6b3cc60636c6629c7aca36d3.tar.gz
go-tangerine-1fe617fa5791bffb6b3cc60636c6629c7aca36d3.tar.bz2
go-tangerine-1fe617fa5791bffb6b3cc60636c6629c7aca36d3.tar.lz
go-tangerine-1fe617fa5791bffb6b3cc60636c6629c7aca36d3.tar.xz
go-tangerine-1fe617fa5791bffb6b3cc60636c6629c7aca36d3.tar.zst
go-tangerine-1fe617fa5791bffb6b3cc60636c6629c7aca36d3.zip
added net API
Diffstat (limited to 'rpc/api')
-rw-r--r--rpc/api/net.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/rpc/api/net.go b/rpc/api/net.go
index 6f5d55f12..d6888ee4a 100644
--- a/rpc/api/net.go
+++ b/rpc/api/net.go
@@ -7,6 +7,10 @@ import (
"github.com/ethereum/go-ethereum/xeth"
)
+const (
+ NetApiVersion = "1.0"
+)
+
var (
// mapping between methods and handlers
netMapping = map[string]nethandler{
@@ -62,6 +66,10 @@ func (self *netApi) Name() string {
return NetApiName
}
+func (self *netApi) ApiVersion() string {
+ return NetApiVersion
+}
+
// Network version
func (self *netApi) Version(req *shared.Request) (interface{}, error) {
return self.xeth.NetworkVersion(), nil