Copy
public func getTSSRequests(tssRequestIDs: [String]) async throws -> [TSSRequest]
Copy
let tssRequestIDs = ["tss_request_id_01"]
Task {
do {
if let requests = try await sdkInstance?.getTSSRequests(tssRequestIDs: tssRequestIDs) {
for request in requests {
print("\(request)\n")
}
} else {
print("No TSS requests found")
}
} catch {
print("Error: \(error)")
}
}
Parameters
The list of IDs for the TSS requests you want to retrieve.
Response
The list of retrieved TSS requests.
Show child attributes
Show child attributes
The TSS request ID.
The status of the TSS request. Possible values include:
100
: Unknown.110
: Scheduling.120
: Initializing.130
: Approving.140
: Processing.160
: Declined.170
: Failed.180
: Canceled.190
: Completed.
Upon completion of a TSS request, a new list of TSS key share groups is generated.
Show child attributes
Show child attributes
The unique ID of the TSS key share group.
For example:
gjRIvhmnDfpcGrzjOABE
The creation time of the TSS key share group in Unix timestamp format, measured in milliseconds.
The type of the TSS key share group. Possible values include:
1
: The type of the TSS key share group is ECDSA.2
: The type of the TSS key share group is EdDSA.
The root extended public key of the TSS key share group.
For example:
xpub661MyMwAqRbcGqCytYJh7eqzqhoEDYVH7Hm1T4B4F4x6ZQ42dv1zhYptDVm5aiPWgWqsU9mtRcY3fQFb9HBZQT2qqMCdLNXHxcjTgCubGbC
The chain code of the TSS key share group.
For example:
0xe5ee24523b97e508f6f665da4212e0e3e2382d765282e4eea6e3ac4fce759e87
The supported signature curve of the TSS key share group. Possible values include:
secp256k1
: The supported signature curve of the TSS key share group is secp256k1.ed25519
: The supported signature curve of the TSS key share group is Ed25519.
The threshold of the TSS key share group.
The list of participants in the TSS key share group.
Show child attributes
Show child attributes
The TSS Node ID of the participant.
For example,
coboJTKRVEWHgmigeE8FB2FDpN6nadUwXkUdsRZbhyFAq8bDV
.The ID of the private key share.
For example,
137335649290518903947478804490993569412
.The public key associated with the private key share.
For example,
0x032d1bb15ea11958cbbcf2be4a08909a6d600fa829abbbb140e4eeb9b58bbe2b37
.The reasons for unsuccessful completion of the TSS request. Possible values of
status
include:failed
: The TSS request has failed.canceled
: The TSS request has been canceled.declined
: The TSS request has been declined.