Skip to main content

Get Deposit Transaction

Returns the on-chain transaction behind one rental income distribution: its hash when it settled, its error when it did not. It is the same object a row of Get Token Deposits carries under transaction, read directly by deposit id. The response is null when the distribution predates the link to its transaction and no match is found. A deposit of another token is reported as not found.

Required permission: token:transactions:view

Request​

GET /v2/admin/tokens/{token_id}/deposits/{deposit_id}/transaction

Parameters​

NameTypeInDescription
token_idstringpathRequired. Token id.
deposit_idstringpathRequired. Deposit (distribution) id.

Headers​

NameDescription
AuthorizationRequired. Bearer <access_token>

Example​

curl --request GET \
--url '{{baseUrl}}/v2/admin/tokens/67d8774e903bfcbe7eb5d93e/deposits/6a8b6f02f9129816a6cc7b30/transaction' \
--header 'Authorization: Bearer <access_token>'

Response​

{
"id": "6a8b5e13f9129816a6cc7a12",
"node_id": "67d6c447f47ff3adafda700d",
"user_id": "",
"token_id": "67d8774e903bfcbe7eb5d93e",
"hash": "0x998a217061da05cf1bf1998470613a488b10908f0964e76a123c4063f91d77c4",
"type": 3,
"status": 3,
"error": null,
"is_api": true,
"created_at": "2025-05-01T09:59:58.104Z"
}

Response Fields​

FieldTypeDescription
idstringTransaction id.
node_idstringNode of the token.
user_idstringNot filled for token transactions: always "".
token_idstringToken id.
hashstring | nullOn-chain transaction hash.
typeinteger3 (TokenRent).
statusinteger1 Started, 2 InProgress, 3 Done, 4 Error, 5 PendingReceipt.
errorstring | nullFailure reason when status is 4.
is_apibooleanThe distribution was started through the partner API by an API client.
created_atstringCreation time (RFC 3339).

Errors​

StatusCodeDescription
40010016token_id or deposit_id is not a valid id
40010001Token not found, or the deposit does not exist or belongs to another token (token domain 5)
40310005The caller's node does not cover the token's node (node domain 2)

See Errors for the error format and common codes.