You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

16 lines
500 B

package rpc
import (
"net/http"
)
func initHandlers() {
http.HandleFunc("/blockchain", BlockchainInfoHandler)
http.HandleFunc("/get_block", GetBlockHandler)
http.HandleFunc("/broadcast_tx", BroadcastTxHandler)
http.HandleFunc("/gen_priv_account", GenPrivAccountHandler)
http.HandleFunc("/get_account", GetAccountHandler)
http.HandleFunc("/list_accounts", ListAccountsHandler)
http.HandleFunc("/sign_send_tx", SignSendTxHandler)
http.HandleFunc("/list_validators", ListValidatorsHandler)
}