Skip to main content
public func getTransactions(transactionIDs: [String]) async throws -> [Transaction]
let transactionIDs = ["transaction_id_01"]

Task {
    do {
        if let transactions = try await sdkInstance?.getTransactions(transactionIDs: transactionIDs) {
            for transaction in transactions {
                print("\(transaction)\n")
            }
        } else {
            print("No transactions found")
        }
    } catch {
        print("Error: \(error)")
    }
}

Parameters

transactionIDs
string[]
The list containing the IDs of the transactions to be retrieved.

Response

transactions
object[]
The list of retrieved transactions.