added net API

This commit is contained in:
Bas van Kervel
2015-06-08 14:50:11 +02:00
committed by Bas van Kervel
parent 4b9b633dfe
commit d2a87f6f72
9 changed files with 141 additions and 11 deletions

View File

@@ -4,7 +4,7 @@ import "github.com/ethereum/go-ethereum/rpc/shared"
// combines multiple API's
type mergedApi struct {
apis []string
apis []string
methods map[string]EthereumApi
}
@@ -48,7 +48,7 @@ func (self *mergedApi) Name() string {
}
func (self *mergedApi) handle(req *shared.Request) (interface{}, error) {
if req.Method == "support_apis" { // provided API's
if req.Method == "support_apis" { // provided API's
return self.apis, nil
}