Fetch Wallet Address
This endpoint helps fetch all crypto wallet addresses in the system tied to your account
Endpoint: GET {{baseUrl}}/crypto/get-wallets
Authorization: Bearer Token
Response Example:
[
{
"currency": "USDT.TRC20",
"address": "TXYZ1234ABC5678EFG9012HIJKL3456MNO789PQR",
"balance": 100.0
},
{
"currency": "BTC",
"address": "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa",
"balance": 0.5
}
]
{
"error": "Invalid authorization token"
}
Request Example
<?php
$baseUrl = 'https://api.yativo.com';
$accessToken = 'YOUR_ACCESS_TOKEN';
$url = $baseUrl . '/crypto/get-wallets';
$options = [
'http' => [
'header' => "Authorization: Bearer $accessToken\r\n",
'method' => 'GET'
]
];
$context = stream_context_create($options);
$response = file_get_contents($url, false, $context);
if ($response === FALSE) {
die('Error occurred');
}
$responseData = json_decode($response, true);
print_r($responseData);
?>
// Some code
Authorizations
Responses
200
OK
application/json
Responseall of
and
anyOptionalExample:
{"status":"success","status_code":200,"message":"Records retrieved successfully","data":[{"id":"f0542ec0-beb6-41e6-a32f-c5abd510aefc","is_customer":0,"customer_id":null,"coin_name":"USDT.TRC20","wallet_address":"TZ6gwmHqh2BEZ9wZ2HnTAnjXqr4RhSkjtz","wallet_currency":"USDT.TRC20","wallet_network":"TRC20","wallet_status":"active","wallet_balance":"0","created_at":"2024-07-31T18:01:30.000000Z"}],"pagination":{"total":1,"per_page":10,"current_page":1,"last_page":1,"next_page_url":null,"prev_page_url":null}}
get
GET /api/v1/crypto/get-wallets HTTP/1.1
Host: smtp.yativo.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200
OK
{
"status": "success",
"status_code": 200,
"message": "Records retrieved successfully",
"data": [
{
"id": "f0542ec0-beb6-41e6-a32f-c5abd510aefc",
"is_customer": 0,
"customer_id": null,
"coin_name": "USDT.TRC20",
"wallet_address": "TZ6gwmHqh2BEZ9wZ2HnTAnjXqr4RhSkjtz",
"wallet_currency": "USDT.TRC20",
"wallet_network": "TRC20",
"wallet_status": "active",
"wallet_balance": "0",
"created_at": "2024-07-31T18:01:30.000000Z"
}
],
"pagination": {
"total": 1,
"per_page": 10,
"current_page": 1,
"last_page": 1,
"next_page_url": null,
"prev_page_url": null
}
}
Last updated