restructured eth rpc API
This commit is contained in:
committed by
Bas van Kervel
parent
6609d45ef4
commit
2f55a1d798
12
rpc/api/api.go
Normal file
12
rpc/api/api.go
Normal 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
|
||||
}
|
Reference in New Issue
Block a user