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

Last updated