aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
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
parent87dace1fa96ed4426ea963ba4f9559c05bf42e35 (diff)
downloaddexon-1fe617fa5791bffb6b3cc60636c6629c7aca36d3.tar
dexon-1fe617fa5791bffb6b3cc60636c6629c7aca36d3.tar.gz
dexon-1fe617fa5791bffb6b3cc60636c6629c7aca36d3.tar.bz2
dexon-1fe617fa5791bffb6b3cc60636c6629c7aca36d3.tar.lz
dexon-1fe617fa5791bffb6b3cc60636c6629c7aca36d3.tar.xz
dexon-1fe617fa5791bffb6b3cc60636c6629c7aca36d3.tar.zst
dexon-1fe617fa5791bffb6b3cc60636c6629c7aca36d3.zip
added net API
Diffstat (limited to 'rpc')
-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