SignedTx class abstract
Represents a signed transaction that consists of the transaction message and an array of signatures. The array of signatures must be populated following the solana convention for the set of addresses that they belong to within the message.
- Available extensions
- Annotations
-
- @freezed
Constructors
-
SignedTx({@Default.new(<Signature>[]) List<
Signature> signatures, required CompiledMessage compiledMessage}) -
constfactory
- SignedTx.decode(String encoded)
-
factory
-
SignedTx.fromBytes(Iterable<
int> data) -
factory
Properties
- blockhash → String
-
no setter
- compiledMessage → CompiledMessage
-
no setterinherited
-
copyWith
→ $SignedTxCopyWith<
SignedTx> -
Create a copy of SignedTx
with the given fields replaced by the non-null parameter values.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
signatures
→ List<
Signature> -
no setterinherited
- version → TransactionVersion
-
no setter
Methods
-
decompileMessage(
{List< AddressLookupTableAccount> addressLookupTableAccounts = const []}) → Message -
encode(
) → String -
map<
TResult extends Object?> (TResult $default(_SignedTx value)) → TResult -
Available on SignedTx, provided by the SignedTxPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_SignedTx value)?) → TResult? -
Available on SignedTx, provided by the SignedTxPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_SignedTx value)?, {required TResult orElse()}) → TResult -
Available on SignedTx, provided by the SignedTxPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(List< Signature> signatures, CompiledMessage compiledMessage)?, {required TResult orElse()}) → TResult -
Available on SignedTx, provided by the SignedTxPatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toByteArray(
) → ByteArray -
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(List< Signature> signatures, CompiledMessage compiledMessage)) → TResult -
Available on SignedTx, provided by the SignedTxPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(List< Signature> signatures, CompiledMessage compiledMessage)?) → TResult? -
Available on SignedTx, provided by the SignedTxPatterns extension
A variant ofwhenthat fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited