package
1.0.15
Repository: https://github.com/netcloth/netcloth-chain.git
Documentation: pkg.go.dev

# Functions

NewBaseReq creates a new basic request instance and sanitizes its values.
NewErrorResponse creates a new ErrorResponse instance.
NewResponseWithHeight creates a new ResponseWithHeight instance.
ParseFloat64OrReturnBadRequest converts s to a float64 value.
ParseHTTPArgs parses the request's URL and returns a slice containing all arguments pairs.
ParseHTTPArgsWithLimit parses the request's URL and returns a slice containing all arguments pairs.
ParseInt64OrReturnBadRequest converts s to a int64 value.
ParseQueryHeightOrReturnBadRequest sets the height to execute a query if set by the http request.
ParseUint64OrReturnBadRequest converts s to a uint64 value.
PostProcessResponse performs post processing for a REST response.
PostProcessResponseBare post processes a body similar to PostProcessResponse except it does not wrap the body and inject the height.
ReadRESTReq reads and unmarshals a Request's body to the the BaseReq stuct.
WriteErrorResponse prepares and writes a HTTP error given a status code and an error message.
WriteSimulationResponse prepares and writes an HTTP response for transactions simulations.

# Constants

should be consistent with tendermint/tendermint/rpc/core/pipe.go:19.
No description provided by the author

# Structs

BaseReq defines a structure that can be embedded in other request structures that all share common "base" fields.
ErrorResponse defines the attributes of a JSON error response.
GasEstimateResponse defines a response definition for tx gas estimation.
ResponseWithHeight defines a response object type that wraps an original response with a height.