Generate Wallet Address

API Documentation

Endpoint: POST {{baseUrl}}/crypto/create-wallet

Authorization: Bearer Token

Request Body:

{
    "currency": "USDT.TRC20"
}

Example Request

<?php
$baseUrl = 'https://api.yativo.com';
$accessToken = 'YOUR_ACCESS_TOKEN';

$url = $baseUrl . 'crypto/create-wallet';

$data = [
    'currency' => 'USDT.TRC20'
];

$options = [
    'http' => [
        'header'  => "Authorization: Bearer $accessToken\r\n" .
                     "Content-Type: application/json\r\n",
        'method'  => 'POST',
        'content' => json_encode($data)
    ]
];

$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);
?>

Last updated