aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/api/utils.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/utils.go
parent09d0d55fc579701191ff34f38cc20b437ee23577 (diff)
downloaddexon-08d72a9245ce6f1e11f84a6b59d66cb083bea9f9.tar.gz
dexon-08d72a9245ce6f1e11f84a6b59d66cb083bea9f9.tar.zst
dexon-08d72a9245ce6f1e11f84a6b59d66cb083bea9f9.zip
added personal API
Diffstat (limited to 'rpc/api/utils.go')
-rw-r--r--rpc/api/utils.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/rpc/api/utils.go b/rpc/api/utils.go
index 6e6d5c7b0..eae23d351 100644
--- a/rpc/api/utils.go
+++ b/rpc/api/utils.go
@@ -29,6 +29,8 @@ func ParseApiString(apistr string, codec codec.Codec, xeth *xeth.XEth, eth *eth.
apis[i] = NewMinerApi(eth, codec)
case NetApiName:
apis[i] = NewNetApi(xeth, eth, codec)
+ case PersonalApiName:
+ apis[i] = NewPersonal(xeth, eth, codec)
case Web3ApiName:
apis[i] = NewWeb3(xeth, codec)
default:
@@ -47,6 +49,8 @@ func Javascript(name string) string {
return Miner_JS
case NetApiName:
return Net_JS
+ case PersonalApiName:
+ return Personal_JS
}
return ""