Versions in this module Expand all Collapse all v0 v0.5.1 Dec 7, 2021 Changes in this version + const FlagPreviousHeight + type BasicReq struct + BaseReq rest.BaseReq + type RestContext struct + func NewRestContext(w http.ResponseWriter, r *http.Request) RestContext + func (ctx RestContext) BasicAuth() (username, password string, ok bool) + func (ctx RestContext) BlockchainInfo(minHeight, maxHeight int64) (*ctypes.ResultBlockchainInfo, error) + func (ctx RestContext) BroadcastMessage(message []byte) ([]byte, error) + func (ctx RestContext) Codec() *codec.Codec + func (ctx RestContext) Context() client.CLIContext + func (ctx RestContext) EncodeAndRespondWithHeight(data interface{}, height int64) + func (ctx RestContext) GetChainHeight() (int64, error) + func (ctx RestContext) HandleWriteRequest(msg sdk.Msg) + func (ctx RestContext) NodeStatus() (*ctypes.ResultStatus, error) + func (ctx RestContext) ParsePaginationParams() (pagination.PaginationParams, error) + func (ctx RestContext) PostProcessResponse(body interface{}) + func (ctx RestContext) PostProcessResponseBare(body interface{}) + func (ctx RestContext) QueryList(path string, params interface{}) + func (ctx RestContext) QueryStore(key []byte, storeName string) ([]byte, int64, error) + func (ctx RestContext) QueryWithData(path string, data interface{}) ([]byte, int64, error) + func (ctx RestContext) ReadRESTReq(req interface{}) bool + func (ctx RestContext) Request() *http.Request + func (ctx RestContext) RespondWithHeight(out interface{}, height int64) + func (ctx RestContext) ResponseWriter() *http.ResponseWriter + func (ctx RestContext) SignAndBroadcastMessage(account string, passphrase string, msg []sdk.Msg) ([]byte, error) + func (ctx RestContext) SignMessage(name string, passphrase string, msg []sdk.Msg) ([]byte, error) + func (ctx RestContext) Signer() sdk.AccAddress + func (ctx RestContext) TxnBuilder() (types.TxBuilder, error) + func (ctx RestContext) Variables() map[string]string + func (ctx RestContext) WithBaseRequest(baseReq rest.BaseReq) (RestContext, error) + func (ctx RestContext) WithCodec(cdc *codec.Codec) RestContext + func (ctx RestContext) WithFormerHeight() (RestContext, error) + func (ctx RestContext) WithHeight(height int64) RestContext + func (ctx RestContext) WithNodeURI(nodeURI string) RestContext + func (ctx RestContext) WithResponseWriter(w http.ResponseWriter) RestContext + func (ctx RestContext) WithSigner() (RestContext, error) + func (ctx RestContext) WriteErrorResponse(status int, err string)