Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Bech32PrefixAccAddr defines the Bech32 prefix of an account's address Bech32PrefixAccAddr = "terra" // Bech32PrefixAccPub defines the Bech32 prefix of an account's public key Bech32PrefixAccPub = "terrapub" // Bech32PrefixValAddr defines the Bech32 prefix of a validator's operator address Bech32PrefixValAddr = "terravaloper" // Bech32PrefixValPub defines the Bech32 prefix of a validator's operator public key Bech32PrefixValPub = "terravaloperpub" // Bech32PrefixConsAddr defines the Bech32 prefix of a consensus node address Bech32PrefixConsAddr = "terravalcons" // Bech32PrefixConsPub defines the Bech32 prefix of a consensus node public key Bech32PrefixConsPub = "terravalconspub" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DecodeRequestReq ¶
type DecodeRequestReq struct {
AminoEncodedTx string `json:"amino_encoded_tx"`
}
type Server ¶
type Server struct { Port int `json:"port"` Version string `yaml:"version,omitempty"` Commit string `yaml:"commit,omitempty"` Branch string `yaml:"branch,omitempty"` }
Server represents the API server
func (*Server) DecodeTxHandler ¶
func (s *Server) DecodeTxHandler(w http.ResponseWriter, r *http.Request)
DecodeHandler handles the /decode route
func (*Server) VersionHandler ¶
func (s *Server) VersionHandler(w http.ResponseWriter, r *http.Request)
VersionHandler handles the /version route
Click to show internal directories.
Click to hide internal directories.