Copy
public func getTransactions(transactionIDs: [String]) async throws -> [Transaction]
Copy
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
The list containing the IDs of the transactions to be retrieved.
Response
The list of retrieved transactions.
Show child attributes
Show child attributes
The transaction ID.
The status of the transactions. Possible values include:
100
: Unknown.110
: Scheduling.120
: Initializing.130
: Approving.140
: Processing.160
: Declined.170
: Failed.180
: Canceled.190
: Completed.
The information about the content that needs to be signed.
Show child attributes
Show child attributes
The signature type. Possible values include:
1
: The signature type is ECDSA.2
: The signature type is EdDSA.3
: The signature type is Schnorr.
The TSS Node protocol. Possible values include:
1
: GG18.2
: Lindell.3
: EddsaTSS.
The list of BIP32 paths.
The list of message hashes.
The list of tweaks when
signatureType
is 3
(Schnorr).The result of completing a transaction is a new list of signatures.
Show child attributes
Show child attributes
The signature type. Possible values include:
1
: ECDSA.2
: EdDSA.3
: Schnorr.
The TSS Node protocol. Possible values include:
1
: GG18.2
: Lindell.3
: EddsaTSS.
The reasons for unsuccessful completion of the transaction. Possible values of
status
include:failed
: The transaction has failed.canceled
: The transaction has been canceled.declined
: The transaction has been declined.