TxSender class
Allows to easily send a StdTx
using the data contained inside the
specified Wallet.
Constructors
- TxSender({required ServiceClient client})
- TxSender.build(GrpcOrGrpcWebClientChannel channel)
-
Builds a new TxSender given a
ClientChannel
.factory - TxSender.fromNetworkInfo(NetworkInfo info)
-
Builds a new TxSender from the given NetworkInfo.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
broadcastTx(
Tx tx, {TxConfig? config, BroadcastMode mode = BroadcastMode.BROADCAST_MODE_SYNC}) → Future< TxResponse> -
Broadcasts the given
tx
using the info contained inside the given wallet. Returns the hash of the transaction once it has been send, or throws an exception if an error is risen during the sending. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited