Report incorrect code
Copy
Ask AI
public func listPendingTransactions() async throws -> [Transaction]
Copy
Ask AI
Task {
do {
if let transactions = try await sdkInstance?.listPendingTransactions() {
for transaction in transactions {
print("\(transaction)\n")
}
} else {
print("No pending transactions found")
}
} catch {
print("Error: \(error)")
}
}
Response
The list of pending 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.
