get Transaction
Fetches the current state of a previously-initiated transaction.
The id must be the value returned by postTransactions; it is percent-decoded and validated against the RFC 3986 pchar allow-list before being interpolated into the URL.
Example:
val transaction = sep31Service.getTransaction(
id = "11111111-1111-1111-1111-111111111111",
jwt = jwtToken
)
println("Status: ${transaction.status}")Content copied to clipboard
Return
The parsed Sep31TransactionResponse.
Parameters
id
Transaction identifier returned by postTransactions.
jwt
SEP-10 authentication token.
Throws
if id fails path-segment validation.
on HTTP 400.
on HTTP 401.
on HTTP 403.
on HTTP 404.
on a 200 with a malformed body, unexpected Content-Type, or a response that exceeds 256 KB.
on any other HTTP status code.