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-01-11 17:10:34 -08:00
|
|
|
http.HandleFunc("/broadcast_tx", BroadcastTxHandler)
|
|
|
|
http.HandleFunc("/gen_priv_account", GenPrivAccountHandler)
|
2015-01-11 23:12:33 -08:00
|
|
|
http.HandleFunc("/get_account", GetAccountHandler)
|
2015-01-11 18:21:17 -08:00
|
|
|
http.HandleFunc("/list_accounts", ListAccountsHandler)
|
2015-01-15 23:48:30 -08:00
|
|
|
http.HandleFunc("/sign_tx", SignTxHandler)
|
2015-01-11 18:21:17 -08:00
|
|
|
http.HandleFunc("/list_validators", ListValidatorsHandler)
|
2015-01-11 17:10:34 -08:00
|
|
|
}
|