Documentation ¶
Overview ¶
Package broadcaster contains code for interacting with the decentr blockchain.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTxInMempoolCache = errors.New("tx is already in mempool cache")
ErrTxInMempoolCache is returned when tx is already broadcast and exists in mempool cache.
Functions ¶
Types ¶
type Broadcaster ¶
type Broadcaster interface { // From returns address of broadcaster. From() sdk.AccAddress // GetHeight returns current height. GetHeight(ctx context.Context) (uint64, error) // BroadcastMsg broadcasts alone message. BroadcastMsg(msg sdk.Msg, memo string) (*sdk.TxResponse, error) // Broadcast broadcasts messages. Broadcast(msgs []sdk.Msg, memo string) (*sdk.TxResponse, error) // PingContext pings node. PingContext(ctx context.Context) error }
Broadcaster provides functionality to broadcast messages to cosmos based blockchain node.
Click to show internal directories.
Click to hide internal directories.