getTransaction abstract method
Future<TransactionDetails?>
getTransaction(
- String signature, {
- Encoding? encoding,
- Commitment? commitment = Commitment.finalized,
- num? maxSupportedTransactionVersion = 0,
Returns transaction details for a confirmed transaction
signature
transaction signature as base-58 encoded string
encoding
commitment
For commitment
parameter description see this document
Commitment.processed is not supported as commitment
.
maxSupportedTransactionVersion
Set the max transaction version to return in responses. If the requested
transaction is a higher version, an error will be returned. If this parameter is omitted, only legacy transactions
will be returned, and any versioned transaction will prompt the error.
Implementation
Future<TransactionDetails?> getTransaction(
String signature, {
Encoding? encoding,
Commitment? commitment = Commitment.finalized,
num? maxSupportedTransactionVersion = 0,
});