added personal API

This commit is contained in:
Bas van Kervel
2015-06-09 10:59:44 +02:00
committed by Bas van Kervel
parent 09d0d55fc5
commit 08d72a9245
5 changed files with 259 additions and 9 deletions

View File

@ -1,17 +1,30 @@
package api
import "github.com/ethereum/go-ethereum/rpc/shared"
import (
"strings"
"github.com/ethereum/go-ethereum/rpc/shared"
)
const (
// 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"
PersonalApiName = "personal"
Web3ApiName = "web3"
)
EthApiName = "eth"
DebugApiName = "debug"
MergedApiName = "merged"
MinerApiName = "miner"
NetApiName = "net"
Web3ApiName = "web3"
var (
// List with all API's which are offered over the IPC interface by default
DefaultIpcApis = strings.Join([]string{
EthApiName,
DebugApiName,
MinerApiName,
NetApiName,
PersonalApiName,
}, ",")
)
// Ethereum RPC API interface