MsgSend class

MsgSend extends StdMsg and represents the message that should be used when sending tokens from one user to another one. It requires to specify the address from which to send the tokens, the one that should receive the tokens and the amount of tokens to send.

Inheritance

Constructors

MsgSend({required String fromAddress, required String toAddress, required List<StdCoin> amount})
Public constructor.

Properties

amount List<StdCoin>
Coins that will be sent.
final
fromAddress String
Bech32 address of the sender.
final
hashCode int
The hash code for this object.
no setterinherited
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
toAddress String
Bech32 address of the recipient.
final
type String
String representing the type of the message.
finalinherited
value Map<String, dynamic>
Map containing the real value of the message.
no setteroverride

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts this instance of StdMsg into a map that can be later used to serialize it as a JSON object.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited