package
5.0.0
Repository: https://github.com/functionx/fx-core.git
Documentation: pkg.go.dev

# Functions

BlockRequestHandlerFn REST handler to get a block.
CheckBadRequestError attaches an error message to an HTTP 400 BAD REQUEST response.
CheckError takes care of writing an error response if err is not nil.
CheckInternalServerError attaches an error message to an HTTP 500 INTERNAL SERVER ERROR response.
CheckNotFoundError attaches an error message to an HTTP 404 NOT FOUND response.
ConvertTxToStdTx converts a transaction to the legacy StdTx format.
CopyTx copies a Tx to a new TxBuilder, allowing conversion between different transaction formats.
DecodeTxRequestHandlerFn returns the decode tx REST handler.
GetChainHeight get the current blockchain height.
GetValidators from client.
LatestBlockRequestHandlerFn REST handler to get the latest block.
LatestValidatorSetRequestHandlerFn Latest Validator Set REST handler.
NewErrorResponse creates a new ErrorResponse instance.
NewResponseWithHeight creates a new ResponseWithHeight instance.
NewValidatorDistInfo creates a new instance of ValidatorDistInfo.
NodeInfoRequestHandlerFn REST handler for node info.
NodeSyncingRequestHandlerFn REST handler for node syncing.
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.
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.
QueryAccountRequestHandlerFn is the query accountREST Handler.
QueryBalancesRequestHandlerFn returns a REST handler that queries for all account balances or a specific balance by denomination.
QueryDepositByTxQuery will query for a single deposit via a direct txs tags query.
QueryDepositsByTxQuery will query for deposits via a direct txs tags query.
QueryGenesisTxs writes the genesis transactions to the response if no error occurs.
QueryTxRequestHandlerFn implements a REST handler that queries a transaction by hash in a committed block.
QueryTxsRequestHandlerFn implements a REST handler that searches for transactions.
QueryVoteByTxQuery will query for a single vote via a direct txs tags query.
QueryVotesByTxQuery will query for votes via a direct txs tags query.
RegisterAuthRESTRoutes registers the auth module REST routes.
RegisterBankRESTRoutes registers all x/bank transaction and query HTTP REST handlers on the provided mux router.
RegisterDistributeRESTRoutes Deprecated.
RegisterEvidenceRESTRoutes registers all Evidence submission handlers for the evidence module's REST service handler.
RegisterGovRESTRoutes Deprecated.
RegisterMintRESTRoutes registers minting module REST handlers on the provided router.
RegisterRPCRoutes Register REST endpoints.
RegisterSlashingRESTRoutes Deprecated.
RegisterStakingRESTRoutes Deprecated.
RegisterTxRESTRoutes registers all transaction routes on the provided router.
RegisterUpgradeRESTRoutes registers REST routes for the upgrade module under the path specified by routeName.
ValidatorSetRequestHandlerFn Validator Set at a height REST handler.
WithHTTPDeprecationHeaders returns a new *mux.Router, identical to its input but with the addition of HTTP Deprecation headers.
WriteErrorResponse prepares and writes a HTTP error given a status code and an error message.

# Constants

should be consistent with tendermint/tendermint/rpc/core/pipe.go:19.
DeprecationURL is the URL for migrating deprecated REST endpoints to newer ones.
DeprecationURL is the URL for migrating deprecated REST endpoints to newer ones.
DeprecationURL is the URL for migrating deprecated REST endpoints to newer ones.
REST Variable names.
No description provided by the author
REST Variable names.
REST Variable names.
REST Variable names.
REST Variable names.
Inclusive maximum height filter.
Inclusive minimum height filter.

# Structs

No description provided by the author
ErrorResponse defines the attributes of a JSON error response.
GasEstimateResponse defines a response definition for tx gas estimation.
NodeInfoResponse defines a response type that contains node status and version information.
ResponseWithHeight defines a response object type that wraps an original response with a height.
ResultValidatorsOutput Validators at a certain height output in bech32 format.
SyncingResponse defines a response type that contains node syncing information.
ValidatorDistInfo defines the properties of validator distribution information response.
ValidatorOutput Validator output.

# Type aliases

No description provided by the author