Documentation ¶
Index ¶
- Constants
- func NewTxFactory(cctx client.Context, opts ...ClientOption) (tx.Factory, error)
- type ClientOption
- func WithAccountNumber(val uint64) ClientOption
- func WithAccountSequence(val uint64) ClientOption
- func WithFees(val string) ClientOption
- func WithGas(val GasSetting) ClientOption
- func WithGasAdjustment(val float64) ClientOption
- func WithGasPrices(val string) ClientOption
- func WithNote(val string) ClientOption
- func WithSignMode(val string) ClientOption
- func WithSkipConfirm(val bool) ClientOption
- func WithTimeoutHeight(val uint64) ClientOption
- type ClientOptions
- type GasSetting
Constants ¶
View Source
const ( // SignModeDirect is the value of the --sign-mode flag for SIGN_MODE_DIRECT SignModeDirect = "direct" // SignModeLegacyAminoJSON is the value of the --sign-mode flag for SIGN_MODE_LEGACY_AMINO_JSON SignModeLegacyAminoJSON = "amino-json" // SignModeDirectAux is the value of the --sign-mode flag for SIGN_MODE_DIRECT_AUX SignModeDirectAux = "direct-aux" // SignModeEIP191 is the value of the --sign-mode flag for SIGN_MODE_EIP_191 SignModeEIP191 = "eip-191" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClientOption ¶
type ClientOption func(options *ClientOptions) error
func WithAccountNumber ¶
func WithAccountNumber(val uint64) ClientOption
func WithAccountSequence ¶
func WithAccountSequence(val uint64) ClientOption
func WithFees ¶
func WithFees(val string) ClientOption
func WithGas ¶
func WithGas(val GasSetting) ClientOption
func WithGasAdjustment ¶
func WithGasAdjustment(val float64) ClientOption
func WithGasPrices ¶
func WithGasPrices(val string) ClientOption
func WithNote ¶
func WithNote(val string) ClientOption
func WithSignMode ¶
func WithSignMode(val string) ClientOption
func WithSkipConfirm ¶
func WithSkipConfirm(val bool) ClientOption
func WithTimeoutHeight ¶
func WithTimeoutHeight(val uint64) ClientOption
type ClientOptions ¶
Click to show internal directories.
Click to hide internal directories.