Documentation ¶
Index ¶
- func BroadcastTxRequest(clientCtx client.Context) http.HandlerFunc
- func EncodeTxRequest(clientCtx client.Context) http.HandlerFunc
- func EstimateTxFeeRequestHandlerFn(clientCtx client.Context) http.HandlerFunc
- func RegisterTxRoutes(clientCtx client.Context, rtr *mux.Router)
- type BroadcastReq
- type EncodeReq
- type EncodeResq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BroadcastTxRequest ¶ added in v0.5.3
func BroadcastTxRequest(clientCtx client.Context) http.HandlerFunc
BroadcastTxRequest implements a tx broadcasting handler that is responsible for broadcasting a valid and signed tx to a full node. The tx can be broadcasted via a sync|async|block mechanism.
func EncodeTxRequest ¶ added in v0.5.5
func EncodeTxRequest(clientCtx client.Context) http.HandlerFunc
EncodeTxRequest implements a tx encode handler that is responsible for encoding a legacy tx into new format tx bytes.
func EstimateTxFeeRequestHandlerFn ¶
func EstimateTxFeeRequestHandlerFn(clientCtx client.Context) http.HandlerFunc
EstimateTxFeeRequestHandlerFn returns estimated tx fee. In particular, it takes 'auto' for the gas field, then simulates and computes gas consumption.
Types ¶
type BroadcastReq ¶ added in v0.5.3
type BroadcastReq struct { Tx legacytx.StdTx `json:"tx" yaml:"tx"` Mode string `json:"mode" yaml:"mode"` Sequences []uint64 `json:"sequences" yaml:"sequences"` FeeGranter string `json:"fee_granter" yaml:"fee_granter"` }
BroadcastReq defines a tx broadcasting request.
func (BroadcastReq) UnpackInterfaces ¶ added in v0.5.3
func (m BroadcastReq) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
UnpackInterfaces implements the UnpackInterfacesMessage interface.
type EncodeReq ¶ added in v0.5.5
type EncodeReq struct { Tx legacytx.StdTx `json:"tx" yaml:"tx"` Sequences []uint64 `json:"sequences" yaml:"sequences"` FeeGranter string `json:"fee_granter" yaml:"fee_granter"` }
EncodeReq defines a tx encode request.
func (EncodeReq) UnpackInterfaces ¶ added in v0.5.5
func (m EncodeReq) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
UnpackInterfaces implements the UnpackInterfacesMessage interface.
type EncodeResq ¶ added in v0.5.5
type EncodeResq struct {
Tx []byte `json:"tx" yaml:"tx"`
}
EncodeResq defines a tx encode response.