Documentation ¶
Overview ¶
Package tx carries the logic to create, sign and broadcast transactions to a Cosmos SDK based blockchain.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeDefaultTxConfig ¶
Types ¶
type Client ¶
type Client interface {
SendTx(ctx context.Context, transaction Transaction) (*sdk.TxResponse, error)
}
func NewClient ¶
func NewClient(authClient authtypes.QueryClient, txServiceClient tx.ServiceClient, chainID string) Client
type Option ¶
type Option func(*transaction)
func WithFeeAmount ¶
func WithGasLimit ¶
func WithSigner ¶
type Transaction ¶
type Transaction interface { Sender() string GetSignedTx(ctx context.Context, accNum, accSeq uint64, chainID string) ([]byte, error) }
func NewTransaction ¶
func NewTransaction(txConfig sdkclient.TxConfig, opts ...Option) Transaction
Click to show internal directories.
Click to hide internal directories.