api.go 425 B

1234567891011121314151617
  1. package api
  2. import "github.com/ethereum/go-ethereum/rpc/shared"
  3. const (
  4. // List with all API's which are offered over the IPC interface by default
  5. DefaultIpcApis = "eth"
  6. )
  7. // Ethereum RPC API interface
  8. type EthereumApi interface {
  9. // Execute the given request and returns the response or an error
  10. Execute(*shared.Request) (interface{}, error)
  11. // List of supported RCP methods this API provides
  12. Methods() []string
  13. }