aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/api/api.go
diff options
context:
space:
mode:
authorBas van Kervel <bas@ethdev.com>2015-06-09 16:59:44 +0800
committerBas van Kervel <basvankervel@gmail.com>2015-06-11 20:01:41 +0800
commit08d72a9245ce6f1e11f84a6b59d66cb083bea9f9 (patch)
treeb265308ff4e6991be1ebdb74c4618759b30e22b4 /rpc/api/api.go
parent09d0d55fc579701191ff34f38cc20b437ee23577 (diff)
downloaddexon-08d72a9245ce6f1e11f84a6b59d66cb083bea9f9.tar
dexon-08d72a9245ce6f1e11f84a6b59d66cb083bea9f9.tar.gz
dexon-08d72a9245ce6f1e11f84a6b59d66cb083bea9f9.tar.bz2
dexon-08d72a9245ce6f1e11f84a6b59d66cb083bea9f9.tar.lz
dexon-08d72a9245ce6f1e11f84a6b59d66cb083bea9f9.tar.xz
dexon-08d72a9245ce6f1e11f84a6b59d66cb083bea9f9.tar.zst
dexon-08d72a9245ce6f1e11f84a6b59d66cb083bea9f9.zip
added personal API
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