Versions in this module Expand all Collapse all v0 v0.2.5 Dec 13, 2019 Changes in this version + type Event struct + Pairs []EventKeyPair + Type string + type EventKeyPair struct + Key string + Value string + type EventResult struct + BeginBlockEvents []Event + EndBlockEvents []Event + TxEvents []Event v0.2.4 Dec 3, 2019 Changes in this version + func BuildStdTxAndResponse(writer http.ResponseWriter, request *http.Request, cliCtx context.CLIContext, ...) + func ParseEvents(rte []atypes.Event) ([]events, error) + func ParseURIPathAddress(request *http.Request, pathName string) (types.AccAddress, error) + func ParseURIPathValue(request *http.Request, pathName string) (string, error) + func PostProcessResponseBare(w http.ResponseWriter, ctx context.CLIContext, body interface{}) + func ServerCommand(cdc *amino.Codec, registerRoutesFn func(*RestServer)) *cobra.Command + func Write40XErrorResponse(w http.ResponseWriter, err error) + func WriteErrorResponse(w http.ResponseWriter, status int, err string) + func WriteGenStdTxResponse(writer http.ResponseWriter, cliCtx context.CLIContext, req BaseRequest, ...) + type BaseRequest struct + ChainId string + From string + Height int64 + Indent bool + MaxGas int64 + Mode string + Nonce int64 + func NewBaseRequest(from, chainId string, nonce, maxGas, height int64, indent bool, mode string) BaseRequest + func ParseRequestForm(r *http.Request) (br BaseRequest, err error) + func (br BaseRequest) Sanitize() BaseRequest + func (br BaseRequest) Setup(ctx context.CLIContext) context.CLIContext + func (br BaseRequest) ValidateBasic() error + type BroadcastReq struct + Mode string + Tx types.Tx + type Config struct + MaxOpen uint64 + ReadTimeOut uint64 + WriteTimeOut uint64 + type ErrorResponse struct + Code int + Error string + func NewErrorResponse(code int, err string) ErrorResponse + type RestServer struct + CliCtx context.CLIContext + Mux *mux.Router + func NewRestServer(cdc *amino.Codec) *RestServer + func (rs *RestServer) Start(listenAddr string, config Config) (err error) + type TxGenerateResponse struct + Code int + Nonce int64 + PubKey crypto.PubKey + SignBytes string + Signer types.AccAddress + Tx string + type TxResponse struct + Code uint32 + Codespace string + Data string + Events []events + GasUsed int64 + GasWanted int64 + Height int64 + Info string + RawLog string + Timestamp string + Tx types.Tx + TxHash string + func NewResponseResultTx(res *ctypes.ResultTx, tx types.Tx, timestamp string) TxResponse + type TxsSearchEvent struct + Key string + Op string + Value string + type TxsSearchItem struct + GasUsed int64 + Hash string + Height int64 + Index uint32 + type TxsSearchRequest struct + Events []TxsSearchEvent + Limit int + Page int + Proof bool + type TxsSearchResponse struct + TotalCount int + Txs []TxsSearchItem