Get transactions by user id
GET/v1/users/:target_user_id/transactions
Get transactions by user id
This endpoint retrieves transaction details for a specific user based on their ID. It supports filtering by wallet ID, sorting, pagination, and searching within a date range. Transactions include detailed information about the sender, receiver, tokens involved, and transaction metadata. Access control ensures that only authorized users or admins can view these transactions.
Request
Path Parameters
target_user_id uuidrequired
User id
Query Parameters
wallet_id string
Wallet id
sort_by string
Sort by
order_by string
Order by
page int32
Page
page_size int32
Page size
search string
Search
end_date date-time
End date
start_date date-time
Start date
Responses
- 200
- 400
- 403
- 404
- 500
User transactions found
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
actionType stringrequired
createdAt date-timerequired
data stringnullable
from stringrequired
fromAccountId uuidrequired
fromAccountName stringrequired
fromTokenCoingeckoId stringnullable
fromTokenDecimals int32nullable
fromTokenFiatValue doublenullable
fromTokenId uuidnullable
fromTokenName stringnullable
fromTokenSymbol stringnullable
fromUserId uuidnullable
fromUserName stringnullable
gasLimit stringnullable
gasPrice stringnullable
id uuidrequired
maxFeePerGas stringnullable
maxPriorityFeePerGas stringnullable
networkId int32required
nonce stringnullable
signedTxRlp stringnullable
to stringrequired
toAccountId uuidnullable
toAccountName stringnullable
toContactAddress stringnullable
toContactAddressName stringnullable
toContactId uuidnullable
toContactName stringnullable
tokenAddress stringnullable
tokenId stringnullable
value stringnullable
[
{
"actionType": "string",
"createdAt": "2024-09-25T19:42:12.591Z",
"data": "string",
"from": "string",
"fromAccountId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"fromAccountName": "string",
"fromTokenCoingeckoId": "string",
"fromTokenDecimals": 0,
"fromTokenFiatValue": 0,
"fromTokenId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"fromTokenName": "string",
"fromTokenSymbol": "string",
"fromUserId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"fromUserName": "string",
"gasLimit": "string",
"gasPrice": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"maxFeePerGas": "string",
"maxPriorityFeePerGas": "string",
"networkId": 0,
"nonce": "string",
"signedTxRlp": "string",
"to": "string",
"toAccountId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"toAccountName": "string",
"toContactAddress": "string",
"toContactAddressName": "string",
"toContactId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"toContactName": "string",
"tokenAddress": "string",
"tokenId": "string",
"value": "string"
}
]
Invalid page or page_size value
- text/plain
- Schema
Schema
string
Don't have access or invalid user
- text/plain
- Schema
Schema
string
User not found
- text/plain
- Schema
Schema
string
Internal server error
- text/plain
- Schema
Schema
string
Loading...