Get transaction
GET/v1/transactions/:transactionId
Get transaction
This endpoint retrieves a specific transaction by its ID. It requires authentication and checks if the requesting user has access to the transaction's associated account. If authorized, it returns the transaction details; otherwise, it returns an error indicating lack of access or that the transaction was not found. This endpoint supports caching to reduce database load for frequently accessed transactions.
Request
Path Parameters
transaction_id uuidrequired
Transaction id
transactionId uuidrequired
Responses
- 200
- 403
- 404
- 500
Transaction found
- application/json
- Schema
- Example (from schema)
Schema
action_type stringrequired
approvers uuid[]nullable
created_at date-timerequired
deniers uuid[]nullable
from_account_id uuidnullable
from_user_id uuidnullable
id uuidrequired
network_id int32required
status stringnullable
to_account_id uuidnullable
to_address stringrequired
to_contact_id uuidnullable
token_address stringnullable
tx_data stringrequired
type stringnullable
{
"action_type": "string",
"approvers": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
],
"created_at": "2024-09-25T19:42:12.563Z",
"deniers": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
],
"from_account_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"from_user_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"network_id": 0,
"status": "string",
"to_account_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"to_address": "string",
"to_contact_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"token_address": "string",
"tx_data": "string",
"type": "string"
}
Transaction account not found or don't have access to it
- text/plain
- Schema
Schema
string
Transaction not found
- text/plain
- Schema
Schema
string
Internal server error
- text/plain
- Schema
Schema
string
Loading...