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:01:39 +0800 |
commit | 2f55a1d79853c1348fb1a4332fff98110167da80 (patch) | |
tree | 66f35f10a3530072e35ff1ac1caa8edc5d5e8445 /rpc/api/api.go | |
parent | 6609d45ef48ce1c2d2b0e73fa8fe5190d36e3920 (diff) | |
download | go-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.go | 12 |
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 +} |