restructured eth rpc API

This commit is contained in:
Bas van Kervel
2015-06-08 10:23:54 +02:00
committed by Bas van Kervel
parent 6609d45ef4
commit 2f55a1d798
11 changed files with 2167 additions and 0 deletions

12
rpc/api/api.go Normal file
View File

@ -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
}