TonWalletMessage class

Describes an internal message that must be sent from the TON wallet of the current user. The message must be signed and sent without any changes

Inheritance
Available extensions
Annotations
  • @immutable

Constructors

TonWalletMessage({required String destinationAddress, required int gramAmount, required int sendMode, required String body, TonSmartContractInitialState? initialState})
const

Properties

body → String
body Body of the message
final
destinationAddress → String
destinationAddress Address on the TON blockchain to which the message must be sent
final
gramAmount → int
gramAmount The amount that must be attached to the message, in the smallest units of TON Grams; already includes all the required amounts
final
hashCode → int
The hash code for this object.
no setteroverride
initialState → TonSmartContractInitialState?
initialState Initial state of the smart contract that must be deployed with the message; may be null if none
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sendMode → int
sendMode Send mode of the message
final

Methods

copyWith({String? destinationAddress, int? gramAmount, int? sendMode, String? body, TonSmartContractInitialState? initialState}) → TonWalletMessage

Available on TonWalletMessage, provided by the TonWalletMessageExtensions extension

getConstructor() → String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(Map<String, dynamic>? json) → TonWalletMessage?

Constants

constructor → const String