TransactionMessage class final

One raw outgoing message in a transaction.

address must be in user-friendly format per TEP-2. Wallets reject raw addresses here, and they read the bounce flag out of the address itself: use a bounceable address for smart contracts, so a throwing or uninitialised contract returns the funds, and a non-bounceable one for wallet contracts, so a transfer to an undeployed wallet still lands.

Annotations
  • @immutable

Constructors

TransactionMessage({required String address, required BigInt amount, String? payload, String? stateInit, Map<int, BigInt>? extraCurrency})
Creates a raw message.
const

Properties

address String
Destination in user-friendly (base64url) format.
final
amount BigInt
Amount in nanocoins.
final
extraCurrency Map<int, BigInt>?
Extra currencies, keyed by currency id.
final
hashCode int
The hash code for this object.
no setterinherited
payload String?
Raw one-cell BoC in base64, when the message carries a body.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stateInit String?
Raw one-cell BoC in base64, to deploy the destination contract.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object?>
Serialises the message for the transaction payload.
toString() String
A string representation of this object.
inherited

Operators

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