# Functions
AsyncOnlyArg returns whether a URL's query "async" parameter.
BuildReqTxCtx builds a tx context for the request.
CalculateGas simulates the execution of a transaction and returns both the estimate obtained by the query and the adjusted amount.
CommitOnlyArg returns whether a URL's query "commit" parameter.
No description provided by the author
EnrichCtxWithGas calculates the gas estimate that would be consumed by the transaction and set the transaction's respective value accordingly.
No description provided by the author
GetAccountDecoder gets the account decoder for auth.DefaultAccount.
HasDryRunArg returns true if the request's URL query contains the dry run argument and its value is set to "true".
InitReqCliCtx.
NewTxBuilderFromCLI returns a new initialized TxContext with parameters from the command line using Viper.
ParseFloat64OrReturnBadRequest converts s to a float64 value.
ParseInt64OrReturnBadRequest converts s to a int64 value.
ParseUint64OrReturnBadRequest converts s to a uint64 value.
PostProcessResponse performs post process for rest response.
PrintUnsignedStdTx builds an unsigned StdTx and prints it to os.Stdout.
ReadPostBody.
SendOrPrintTx implements a utility function that facilitates sending a series of messages in a signed transaction given a TxContext and a QueryContext.
SignStdTx appends a signature to a StdTx and returns a copy of a it.
SignStdTxWithSignerAddress attaches a signature to a StdTx and returns a copy of a it.
WriteErrorResponse prepares and writes a HTTP error given a status code and an error message.
WriteGenerateStdTxResponse writes response for the generate_only mode.
No description provided by the author