TxBuilder class
Allows to easily build and sign a Tx that can later be sent over the network.
Constructors
- TxBuilder.create()
-
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
-
getTx(
) → Tx - Returns the built Tx
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setFeeAmount(
List< Coin> ? coins) → void -
Sets the given
coins
as the transaction fees. -
setFeeGranter(
String? granter) → void -
Sets the given
granter
as the transaction fee granter. -
setFeePayer(
String? payer) → void -
Sets the given
payer
as the transaction fee payer. -
setGasLimit(
Int64? limit) → void -
Sets the given
limit
as the gas limit to be used to execute the transaction. -
setMemo(
String? memo) → void -
Sets the given
memo
inside the transactions. -
setMsgs(
List< GeneratedMessage> messages) → void -
Sets the given
messages
as the transaction messages. -
setSignatures(
List< SignatureV2> signatures) → void -
Sets the given
signatures
as the transaction sigantures. -
setTimeoutHeight(
int? timeout) → void -
Sets the given
timeout
to be the number of blocks in which to execute the transaction. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited