Documentation ¶
Index ¶
- func ComputeFees(cliCtx context.CLIContext, req ComputeReqParams) (fees sdk.Coins, gas uint64, err error)
- func ComputeFeesWithStdTx(cliCtx context.CLIContext, tx auth.StdTx, gasAdjustment float64, ...) (fees sdk.Coins, gas uint64, err error)
- func ParseFloat64(s string, defaultIfEmpty float64) (n float64, err error)
- type ComputeReqParams
- type EstimateFeeReq
- type EstimateFeeResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeFees ¶
func ComputeFees( cliCtx context.CLIContext, req ComputeReqParams) (fees sdk.Coins, gas uint64, err error)
ComputeFees returns fee amount with given transfer, gas, gas prices, and fees amount.
Types ¶
type ComputeReqParams ¶
type ComputeReqParams struct { Memo string ChainID string AccountNumber uint64 Sequence uint64 GasPrices sdk.DecCoins Gas string GasAdjustment string Msgs []sdk.Msg }
ComputeReqParams no-lint
type EstimateFeeReq ¶
type EstimateFeeReq struct { Tx auth.StdTx `json:"tx"` GasAdjustment string `json:"gas_adjustment"` GasPrices sdk.DecCoins `json:"gas_prices"` }
EstimateFeeReq defines a tx encoding request.
type EstimateFeeResp ¶
EstimateFeeResp defines a tx encoding response.
func (EstimateFeeResp) String ¶
func (r EstimateFeeResp) String() string
String implements fmt.Stringer interface
Click to show internal directories.
Click to hide internal directories.