aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/api/api.go
diff options
context:
space:
mode:
Diffstat (limited to 'rpc/api/api.go')
-rw-r--r--rpc/api/api.go31
1 files changed, 22 insertions, 9 deletions
diff --git a/rpc/api/api.go b/rpc/api/api.go
index 067a4d4e8..d2c548ed1 100644
--- a/rpc/api/api.go
+++ b/rpc/api/api.go
@@ -1,17 +1,30 @@
package api
-import "github.com/ethereum/go-ethereum/rpc/shared"
+import (
+ "strings"
+
+ "github.com/ethereum/go-ethereum/rpc/shared"
+)
const (
+ EthApiName = "eth"
+ DebugApiName = "debug"
+ MergedApiName = "merged"
+ MinerApiName = "miner"
+ NetApiName = "net"
+ PersonalApiName = "personal"
+ Web3ApiName = "web3"
+)
+
+var (
// List with all API's which are offered over the IPC interface by default
- DefaultIpcApis = "debug,eth,miner,net,web3"
-
- EthApiName = "eth"
- DebugApiName = "debug"
- MergedApiName = "merged"
- MinerApiName = "miner"
- NetApiName = "net"
- Web3ApiName = "web3"
+ DefaultIpcApis = strings.Join([]string{
+ EthApiName,
+ DebugApiName,
+ MinerApiName,
+ NetApiName,
+ PersonalApiName,
+ }, ",")
)
// Ethereum RPC API interface