Przejdź do głównej zawartości

Transfer History

POST
/wallets/transfer-history/

Retrieves the transfer history for a specific wallet. Supports filtering by status, transfer type, and currency, with pagination support.

Request Parameters

ParameterTypeRequiredDescription
wallet_idstringYesThe system-assigned wallet identifier
statusstringNoFilter by transfer status (e.g., "completed", "pending", "failed")
transfer_typestringNoFilter by transfer type (e.g., "to_sub", "to_master")
currencystringNoFilter by currency code (e.g., "USDTTRC20", "BTC")
limitintegerNoMaximum number of results to return
offsetintegerNoNumber of results to skip (for pagination)

Authentication

This endpoint requires authentication using one of the following methods:

Authentication TypeHeaderDescription
OAuth 2.0AuthorizationBearer your_access_token
API KeyX-API-Keyyour_api_key

Example Request

curl -X POST "https://api.cryptofuse.io/api/v1/wallets/transfer-history/" \
-H "X-API-Key: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"wallet_id": "w_abc123def456",
"status": "completed",
"currency": "USDTTRC20",
"limit": 10,
"offset": 0
}'

Response

FieldTypeDescription
accountobjectWallet account details
transfersarrayArray of transfer objects
paginationobjectPagination metadata

Example Response

{
"account": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Player 12345",
"external_id": "player-12345",
"wallet_id": "w_abc123def456"
},
"transfers": [
{
"id": "6d3f0960-5551-4af5-9601-aeecc512a87a",
"transfer_type": "to_sub",
"currency": "USDTTRC20",
"amount": "100.00",
"status": "completed",
"created_at": "2025-04-20T10:30:00.000Z"
},
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"transfer_type": "to_master",
"currency": "USDTTRC20",
"amount": "50.00",
"status": "completed",
"created_at": "2025-04-19T14:15:00.000Z"
}
],
"pagination": {
"total": 25,
"limit": 10,
"offset": 0
}
}

Error Codes

Status CodeError CodeDescription
400invalid_requestMissing wallet_id or invalid filter values
401unauthorizedAuthentication failed
403forbiddenUser doesn't have required permissions
404not_foundWallet not found
500server_errorInternal server error

Error Response Format

{
"error": {
"code": "not_found",
"message": "Wallet not found",
"details": {}
}
}

Notes

  • Use the transfer_id returned by Transfer to User or Withdraw to Master to look up specific transfers in the history.
  • Filters are optional and can be combined. Omitting all filters returns all transfers for the wallet.
  • Results are ordered by creation date (most recent first).
  • Required scopes: read, write.