2015-04-07 11:44:25 -07:00
|
|
|
package core
|
|
|
|
|
|
|
|
import (
|
2015-05-16 14:41:36 -07:00
|
|
|
rpc "github.com/tendermint/tendermint/rpc/server"
|
2015-04-07 11:44:25 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
var Routes = map[string]*rpc.RPCFunc{
|
|
|
|
"status": rpc.NewRPCFunc(Status, []string{}),
|
|
|
|
"net_info": rpc.NewRPCFunc(NetInfo, []string{}),
|
2015-04-08 14:27:03 -07:00
|
|
|
"blockchain": rpc.NewRPCFunc(BlockchainInfo, []string{"minHeight", "maxHeight"}),
|
2015-05-29 19:38:14 -04:00
|
|
|
"genesis": rpc.NewRPCFunc(Genesis, []string{}),
|
2015-04-07 11:44:25 -07:00
|
|
|
"get_block": rpc.NewRPCFunc(GetBlock, []string{"height"}),
|
|
|
|
"get_account": rpc.NewRPCFunc(GetAccount, []string{"address"}),
|
2015-04-08 14:27:03 -07:00
|
|
|
"get_storage": rpc.NewRPCFunc(GetStorage, []string{"address", "key"}),
|
2015-04-07 11:44:25 -07:00
|
|
|
"call": rpc.NewRPCFunc(Call, []string{"address", "data"}),
|
2015-04-08 14:27:03 -07:00
|
|
|
"call_code": rpc.NewRPCFunc(CallCode, []string{"code", "data"}),
|
2015-04-07 11:44:25 -07:00
|
|
|
"list_validators": rpc.NewRPCFunc(ListValidators, []string{}),
|
2015-04-20 20:39:42 -07:00
|
|
|
"dump_consensus_state": rpc.NewRPCFunc(DumpConsensusState, []string{}),
|
2015-04-07 11:44:25 -07:00
|
|
|
"dump_storage": rpc.NewRPCFunc(DumpStorage, []string{"address"}),
|
|
|
|
"broadcast_tx": rpc.NewRPCFunc(BroadcastTx, []string{"tx"}),
|
2015-04-25 13:26:36 -07:00
|
|
|
"list_unconfirmed_txs": rpc.NewRPCFunc(ListUnconfirmedTxs, []string{}),
|
2015-04-07 11:44:25 -07:00
|
|
|
"list_accounts": rpc.NewRPCFunc(ListAccounts, []string{}),
|
2015-05-30 11:13:09 -04:00
|
|
|
"get_name": rpc.NewRPCFunc(GetName, []string{"name"}),
|
|
|
|
"list_names": rpc.NewRPCFunc(ListNames, []string{}),
|
2015-04-07 11:44:25 -07:00
|
|
|
"unsafe/gen_priv_account": rpc.NewRPCFunc(GenPrivAccount, []string{}),
|
|
|
|
"unsafe/sign_tx": rpc.NewRPCFunc(SignTx, []string{"tx", "privAccounts"}),
|
|
|
|
}
|