Documentation
¶
Index ¶
- Constants
- func AsyncOnlyArg(r *http.Request) bool
- func GenerateOnlyArg(r *http.Request) bool
- func InitRequestClictx(cliCtx context.CLIContext, r *http.Request, name string, signerAddress string) context.CLIContext
- func PrintUnsignedStdTx(txCtx context.TxContext, cliCtx context.CLIContext, msgs []sdk.Msg) (err error)
- func ReadPostBody(w http.ResponseWriter, r *http.Request, cdc *wire.Codec, req interface{}) error
- func SendOrPrintTx(txCtx context.TxContext, cliCtx context.CLIContext, msgs []sdk.Msg) error
- func SendOrReturnUnsignedTx(w http.ResponseWriter, cliCtx context.CLIContext, txCtx context.TxContext, ...)
- func WriteErrorResponse(w http.ResponseWriter, status int, msg string)
- func WriteGenerateStdTxResponse(w http.ResponseWriter, txCtx context.TxContext, msgs []sdk.Msg)
Constants ¶
View Source
const ( Async = "async" GenerateOnly = "generate-only" )
Variables ¶
This section is empty.
Functions ¶
func AsyncOnlyArg ¶
func GenerateOnlyArg ¶
func InitRequestClictx ¶
func InitRequestClictx(cliCtx context.CLIContext, r *http.Request, name string, signerAddress string) context.CLIContext
func PrintUnsignedStdTx ¶
func PrintUnsignedStdTx(txCtx context.TxContext, cliCtx context.CLIContext, msgs []sdk.Msg) (err error)
PrintUnsignedStdTx builds an unsigned StdTx and prints it to os.Stdout.
func ReadPostBody ¶
func SendOrPrintTx ¶
func SendOrReturnUnsignedTx ¶
func SendOrReturnUnsignedTx(w http.ResponseWriter, cliCtx context.CLIContext, txCtx context.TxContext, baseTx context.BaseTx, msgs []sdk.Msg)
func WriteErrorResponse ¶
func WriteErrorResponse(w http.ResponseWriter, status int, msg string)
WriteErrorResponse prepares and writes a HTTP error given a status code and an error message.
func WriteGenerateStdTxResponse ¶
WriteGenerateStdTxResponse writes response for the generate_only mode.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.