aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/api/api.go
diff options
context:
space:
mode:
authorBas van Kervel <basvankervel@ziggo.nl>2015-06-08 16:23:54 +0800
committerBas van Kervel <basvankervel@gmail.com>2015-06-11 20:01:39 +0800
commit2f55a1d79853c1348fb1a4332fff98110167da80 (patch)
tree66f35f10a3530072e35ff1ac1caa8edc5d5e8445 /rpc/api/api.go
parent6609d45ef48ce1c2d2b0e73fa8fe5190d36e3920 (diff)
downloadgo-tangerine-2f55a1d79853c1348fb1a4332fff98110167da80.tar
go-tangerine-2f55a1d79853c1348fb1a4332fff98110167da80.tar.gz
go-tangerine-2f55a1d79853c1348fb1a4332fff98110167da80.tar.bz2
go-tangerine-2f55a1d79853c1348fb1a4332fff98110167da80.tar.lz
go-tangerine-2f55a1d79853c1348fb1a4332fff98110167da80.tar.xz
go-tangerine-2f55a1d79853c1348fb1a4332fff98110167da80.tar.zst
go-tangerine-2f55a1d79853c1348fb1a4332fff98110167da80.zip
restructured eth rpc API
Diffstat (limited to 'rpc/api/api.go')
-rw-r--r--rpc/api/api.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/rpc/api/api.go b/rpc/api/api.go
new file mode 100644
index 000000000..758e056ed
--- /dev/null
+++ b/rpc/api/api.go
@@ -0,0 +1,12 @@
+package api
+
+import "github.com/ethereum/go-ethereum/rpc/shared"
+
+// Ethereum RPC API interface
+type EthereumApi interface {
+ // Execute the given request and returns the response or an error
+ Execute(*shared.Request) (interface{}, error)
+
+ // List of supported RCP methods this API provides
+ Methods() []string
+}