Try Cobo WaaS Skill in your AI coding assistant (Claude Code, Cursor, etc.). Describe your needs in natural language to auto-generate production-ready SDK code and debug faster đ
public func getTransactions(transactionIDs: [String]) async throws -> [Transaction]
Future<List<Transaction>> getTransactions(List<String> transactionIDs) async
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)")
}
}
final List<String> transactionIDs = ["transaction_id_01"];
try {
final transactions = await sdkInstance?.getTransactions(transactionIDs: transactionIDs);
for (final transaction in transactions) {
print("$transaction\n");
}
} catch (error) {
print("Error: $error");
}
Parameters
string[]
The list containing the IDs of the transactions to be retrieved.
Response
object[]
The list of retrieved transactions.
Show child attributes
Show child attributes
string
The transaction ID.
enum<int32>
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.
object[]
The information about the content that needs to be signed.
Show child attributes
Show child attributes
enum<int32>
The signature type. Possible values include:
1: The signature type is ECDSA.2: The signature type is EdDSA.3: The signature type is Schnorr.
enum<int32>
The TSS Node protocol. Possible values include:
1: GG18.2: Lindell.3: EddsaTSS.
string[]
The list of BIP32 paths.
string[]
The list of message hashes.
string[]
The list of tweaks when
signatureType is 3 (Schnorr).object[]
The result of completing a transaction is a new list of signatures.
Show child attributes
Show child attributes
object[]
enum<int32>
The signature type. Possible values include:
1: ECDSA.2: EdDSA.3: Schnorr.
enum<int32>
The TSS Node protocol. Possible values include:
1: GG18.2: Lindell.3: EddsaTSS.
string[]
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.
