2015-01-11 17:10:34 -08:00
|
|
|
package rpc
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
)
|
|
|
|
|
|
|
|
func initHandlers() {
|
|
|
|
http.HandleFunc("/blockchain", BlockchainInfoHandler)
|
2015-01-11 23:12:33 -08:00
|
|
|
http.HandleFunc("/get_block", GetBlockHandler)
|
2015-03-16 22:30:32 -07:00
|
|
|
|
|
|
|
http.HandleFunc("/develop/gen_priv_account", GenPrivAccountHandler)
|
2015-01-11 23:12:33 -08:00
|
|
|
http.HandleFunc("/get_account", GetAccountHandler)
|
2015-03-16 22:30:32 -07:00
|
|
|
http.HandleFunc("/develop/list_accounts", ListAccountsHandler)
|
|
|
|
|
|
|
|
http.HandleFunc("/broadcast_tx", BroadcastTxHandler)
|
2015-01-11 18:21:17 -08:00
|
|
|
http.HandleFunc("/list_validators", ListValidatorsHandler)
|
2015-03-16 22:30:32 -07:00
|
|
|
http.HandleFunc("/develop/sign_tx", SignTxHandler)
|
|
|
|
|
|
|
|
//http.HandleFunc("/call", CallHandler)
|
|
|
|
//http.HandleFunc("/get_storage", GetStorageHandler)
|
|
|
|
|
|
|
|
http.HandleFunc("/net_info", NetInfoHandler)
|
|
|
|
http.HandleFunc("/status", StatusHandler)
|
2015-01-11 17:10:34 -08:00
|
|
|
}
|