diff options
author | Bas van Kervel <basvankervel@ziggo.nl> | 2015-06-08 16:23:54 +0800 |
---|---|---|
committer | Bas van Kervel <basvankervel@gmail.com> | 2015-06-11 20:13:57 +0800 |
commit | 348f1562e29c80cac3c1d13ff255a25ed4ec81c7 (patch) | |
tree | 65889e985dc5c12c6c3a92847920b8f25997d81d /rpc/api/eth.go | |
parent | 7e41d7ac51fdaba1c03ec3f9cb8cc7a7bc3830f4 (diff) | |
download | go-tangerine-348f1562e29c80cac3c1d13ff255a25ed4ec81c7.tar go-tangerine-348f1562e29c80cac3c1d13ff255a25ed4ec81c7.tar.gz go-tangerine-348f1562e29c80cac3c1d13ff255a25ed4ec81c7.tar.bz2 go-tangerine-348f1562e29c80cac3c1d13ff255a25ed4ec81c7.tar.lz go-tangerine-348f1562e29c80cac3c1d13ff255a25ed4ec81c7.tar.xz go-tangerine-348f1562e29c80cac3c1d13ff255a25ed4ec81c7.tar.zst go-tangerine-348f1562e29c80cac3c1d13ff255a25ed4ec81c7.zip |
restructured eth rpc API
Diffstat (limited to 'rpc/api/eth.go')
-rw-r--r-- | rpc/api/eth.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/rpc/api/eth.go b/rpc/api/eth.go index f27f17f39..a0b9dad86 100644 --- a/rpc/api/eth.go +++ b/rpc/api/eth.go @@ -11,6 +11,10 @@ import ( "github.com/ethereum/go-ethereum/xeth" ) +const ( + EthApiVersion = "1.0" +) + // eth api provider // See https://github.com/ethereum/wiki/wiki/JSON-RPC type ethApi struct { @@ -97,6 +101,10 @@ func (self *ethApi) Name() string { return EthApiName } +func (self *ethApi) ApiVersion() string { + return EthApiVersion +} + func (self *ethApi) Accounts(req *shared.Request) (interface{}, error) { return self.xeth.Accounts(), nil } |