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.

15 lines
441 B

  1. package rpc
  2. import (
  3. "net/http"
  4. )
  5. func initHandlers() {
  6. http.HandleFunc("/blockchain", BlockchainInfoHandler)
  7. http.HandleFunc("/block", BlockHandler)
  8. http.HandleFunc("/broadcast_tx", BroadcastTxHandler)
  9. http.HandleFunc("/gen_priv_account", GenPrivAccountHandler)
  10. http.HandleFunc("/sign_send_tx", SignSendTxHandler)
  11. http.HandleFunc("/list_accounts", ListAccountsHandler)
  12. http.HandleFunc("/list_validators", ListValidatorsHandler)
  13. }