Documentation ¶
Index ¶
- Constants
- func EstimateTxFeeRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
- func MultiSignRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
- func QueryTxsRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
- func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router)
- type MultiSignPubKey
- type MultiSignReq
Constants ¶
const TxQueryMaxHeightRange = 100
TxQueryMaxHeightRange maximum allowed height range for /txs query
Variables ¶
This section is empty.
Functions ¶
func EstimateTxFeeRequestHandlerFn ¶ added in v0.3.0
func EstimateTxFeeRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
EstimateTxFeeRequestHandlerFn returns estimated tx fee. In particular, it takes 'auto' for the gas field, then simulates and computes gas consumption.
func MultiSignRequestHandlerFn ¶
func MultiSignRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
MultiSignRequestHandlerFn - http request handler to build multisign transaction.
func QueryTxsRequestHandlerFn ¶ added in v0.4.0
func QueryTxsRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
QueryTxsRequestHandlerFn implements a REST handler that searches for transactions. Genesis transactions are returned if the height parameter is set to zero, otherwise the transactions are searched for by events.
func RegisterRoutes ¶
func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router)
RegisterRoutes registers the auth module REST routes
Types ¶
type MultiSignPubKey ¶ added in v0.3.0
MultiSignPubKey defines the properties of a multisig account's public key
type MultiSignReq ¶
type MultiSignReq struct { Tx auth.StdTx `json:"tx"` ChainID string `json:"chain_id"` Signatures []auth.StdSignature `json:"signatures"` SignatureOnly bool `json:"signature_only"` Sequence uint64 `json:"sequence_number"` Pubkey MultiSignPubKey `json:"pubkey"` // (optional) In case the multisig account never reveals its pubkey, it is required. }
MultiSignReq defines the properties of a multisign request's body.