Documentation ¶
Index ¶
- func BroadcastTxRequest(clientCtx client.Context) http.HandlerFunc
- func ConvertAndEncodeStdTx(txConfig client.TxConfig, stdTx legacytx.StdTx) ([]byte, error)
- func ConvertTxToStdTx(codec *codec.LegacyAmino, tx signing.Tx) (legacytx.StdTx, error)
- func CopyTx(tx signing.Tx, builder client.TxBuilder, ignoreSignatureError bool) error
- func PrepareFactory(clientCtx client.Context, txf tx.Factory) (tx.Factory, error)
- type BroadcastReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BroadcastTxRequest ¶
func BroadcastTxRequest(clientCtx client.Context) http.HandlerFunc
func ConvertAndEncodeStdTx ¶
func ConvertTxToStdTx ¶
func CopyTx ¶
CopyTx copies a Tx to a new TxBuilder, allowing conversion between different transaction formats. If ignoreSignatureError is true, copying will continue tx even if the signature cannot be set in the target builder resulting in an unsigned tx.
func PrepareFactory ¶
prepareFactory ensures the account defined by ctx.GetFromAddress() exists and if the account number and/or the account sequence number are zero (not set), they will be queried for and set on the provided Factory. A new Factory with the updated fields will be returned. Deprecated: This function as made private in the Cosmos SDK, however it seems we have custom uses cases that still require this function. Please find alternative.