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
491 B

  1. package rpc
  2. import (
  3. "net/http"
  4. )
  5. func initHandlers() {
  6. http.HandleFunc("/blockchain", BlockchainInfoHandler)
  7. http.HandleFunc("/get_block", GetBlockHandler)
  8. http.HandleFunc("/broadcast_tx", BroadcastTxHandler)
  9. http.HandleFunc("/gen_priv_account", GenPrivAccountHandler)
  10. http.HandleFunc("/get_account", GetAccountHandler)
  11. http.HandleFunc("/list_accounts", ListAccountsHandler)
  12. http.HandleFunc("/sign_tx", SignTxHandler)
  13. http.HandleFunc("/list_validators", ListValidatorsHandler)
  14. }