AptosRequestGetTransactionByHash class
Look up a transaction by its hash. This is the same hash that is returnedby the API when submitting a transaction (see PendingTransaction). When given a transaction hash, the server first looks for the transactionin storage (on-chain, committed). If no on-chain transaction is found, itlooks the transaction up by hash in the mempool (pending, not yet committed).To create a transaction hash by yourself, do the following:
- Hash message bytes: "RawTransaction" bytes + BCS bytes of Transaction.
- Apply hash algorithm SHA3-256to the hash message bytes.3. Hex-encode the hash bytes with0xprefix. aptos documation
- Inheritance
- 
    - Object
- BaseServiceRequest<AptosApiTransaction, Map< String, dynamic> , AptosRequestDetails>
- AptosRequest<AptosApiTransaction, Map< String, dynamic> >
- AptosRequestGetTransactionByHash
 
Constructors
- AptosRequestGetTransactionByHash(String txnHash)
Properties
- hashCode → int
- 
  The hash code for this object.
  no setterinherited
- method → String
- 
  
  no setteroverride
- 
  pathParameters
  → List<String> 
- 
  
  no setteroverride
- 
  queryParameters
  → Map<String, String?> 
- 
  
  no setterinherited
- requestType → RequestServiceType
- 
  
  no setterinherited
- runtimeType → Type
- 
  A representation of the runtime type of the object.
  no setterinherited
- txnHash → String
- 
  Hash of transaction to retrieve
  final
Methods
- 
  buildRequest(int requestID) → AptosRequestDetails 
- 
  
  inherited
- 
  noSuchMethod(Invocation invocation) → dynamic 
- 
  Invoked when a nonexistent method or property is accessed.
  inherited
- 
  onResonse(Map< String, dynamic> result) → AptosApiTransaction
- 
  
  override
- 
  toString() → String 
- 
  A string representation of this object.
  inherited
Operators
- 
  operator ==(Object other) → bool 
- 
  The equality operator.
  inherited