SolanaTransaction class
A class representing a Solana transaction.
Constructors
- 
          SolanaTransaction({required SolAddress payerKey, required List<TransactionInstruction> instructions, required SolAddress recentBlockhash, List<List< signatures = const [], TransactionType? type, List<int> >AddressLookupTableAccount> addressLookupTableAccounts = const []})
- 
          Constructs a Solana transaction with provided parameters.
            factory
- 
          SolanaTransaction.deserialize(List<int> serializedTransaction, {bool verifySignatures = false})
- 
          Deserializes a Solana transaction from a serialized buffer.
            factory
- 
          SolanaTransaction.fromJson(Map<String, dynamic> json, {TransactionType? version})
- 
          
            factory
- SolanaTransaction.fromMessage(VersionedMessage message)
- 
          
            factory
Properties
- hashCode → int
- 
  The hash code for this object.
  no setterinherited
- message → VersionedMessage
- 
  The message of the transaction.
  final
- runtimeType → Type
- 
  A representation of the runtime type of the object.
  no setterinherited
- 
  signatures
  → List<List< int> >
- 
  Gets the signatures of the transaction.
  no setter
- 
  signers
  → List<SolAddress> 
- 
  signers of the transaction
  no setter
- type → TransactionType
- 
  The type of the transaction.
  no setter
Methods
- 
  addSignature(SolAddress address, List< int> signature, {bool verifySignature = true}) → void
- Adds a signature to the transaction.
- 
  areSignaturesReady() → bool 
- Checks if all signatures of the transaction are ready.
- 
  noSuchMethod(Invocation invocation) → dynamic 
- 
  Invoked when a nonexistent method or property is accessed.
  inherited
- 
  serialize({bool verifySignatures = false}) → List< int> 
- Serializes the transaction.
- 
  serializeMessage() → List< int> 
- Serializes the message of the transaction.
- 
  serializeMessageString({TransactionSerializeEncoding encoding = TransactionSerializeEncoding.hex}) → String 
- Serializes the message of the transaction to hexadecimal format.
- 
  serializeString({TransactionSerializeEncoding encoding = TransactionSerializeEncoding.base58, bool verifySignatures = false}) → String 
- Serializes the transaction to string format.
- 
  sign(List< SolanaPrivateKey> signers) → void
- Signs the transaction with provided signers.
- 
  toString() → String 
- 
  A string representation of this object.
  inherited
Operators
- 
  operator ==(Object other) → bool 
- 
  The equality operator.
  inherited