tx

package
v0.12.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeTxRequestHandlerFn added in v0.12.1

func DecodeTxRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc

func RegisterTxRoutes

func RegisterTxRoutes(cliCtx context.CLIContext, r *mux.Router)

func SignDataRequest

func SignDataRequest(cliCtx context.CLIContext) http.HandlerFunc

Types

type DecodeReq added in v0.12.1

type DecodeReq struct {
	Tx string `json:"tx"`
}

DecodeReq defines a tx decoding request.

type DecodeResp added in v0.12.1

type DecodeResp auth.StdTx

DecodeResp defines a tx decoding response.

type SignDataReq

type SignDataReq struct {
	Msg    string `json:"msg" yaml:"msg"`
	PubKey string `json:"pub_key" yaml:"pub_key"`
}

type SignDataResponse

type SignDataResponse struct {
	SignBytes string      `json:"sign_bytes" yaml:"sign_bytes"`
	Fee       auth.StdFee `json:"fee" yaml:"fee"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL