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);
?>
Authorizations
Body
all ofOptional
and
anyOptionalExample:
{"currency":"USDT.BEP20","is_customer":false,"customer_id":"9c12e651-5248-4d9a-ad49-05ccfd9a2d3c"}
Responses
200
OK
application/json
Responseall of
and
anyOptionalExample:
{"status":"success","status_code":200,"message":"Request successful","data":{"id":"491d5785-ca24-41a0-a072-184b9a1c414f","is_customer":1,"customer_id":"9c12e651-5248-4d9a-ad49-05ccfd9a2d3c","coin_name":"USDT.BEP20","wallet_address":5.838466730289961e+47,"wallet_currency":"USDT.BEP20","wallet_network":"BEP20","wallet_status":"active","wallet_balance":"0","created_at":"2024-11-05T07:15:37.000000Z","customer":{"customer_id":"9c12e651-5248-4d9a-ad49-05ccfd9a2d3c","customer_name":"Jacob Customer","customer_email":"[email protected]","customer_phone":"+2349039395111","customer_country":"Nigeria","customer_address":{"city":"Ilorin","state":"Kwara","number":"30","street":"Elm Street","country":"Nigeria","zipcode":"241240"},"can_create_vc":0,"can_create_va":0,"customer_status":"pending","created_at":"2024-10-31T10:14:52.000000Z"}}}
post
POST /api/v1/crypto/create-wallet HTTP/1.1
Host: smtp.yativo.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 98
{
"currency": "USDT.BEP20",
"is_customer": false,
"customer_id": "9c12e651-5248-4d9a-ad49-05ccfd9a2d3c"
}
200
OK
{
"status": "success",
"status_code": 200,
"message": "Request successful",
"data": {
"id": "491d5785-ca24-41a0-a072-184b9a1c414f",
"is_customer": 1,
"customer_id": "9c12e651-5248-4d9a-ad49-05ccfd9a2d3c",
"coin_name": "USDT.BEP20",
"wallet_address": 5.838466730289961e+47,
"wallet_currency": "USDT.BEP20",
"wallet_network": "BEP20",
"wallet_status": "active",
"wallet_balance": "0",
"created_at": "2024-11-05T07:15:37.000000Z",
"customer": {
"customer_id": "9c12e651-5248-4d9a-ad49-05ccfd9a2d3c",
"customer_name": "Jacob Customer",
"customer_email": "[email protected]",
"customer_phone": "+2349039395111",
"customer_country": "Nigeria",
"customer_address": {
"city": "Ilorin",
"state": "Kwara",
"number": "30",
"street": "Elm Street",
"country": "Nigeria",
"zipcode": "241240"
},
"can_create_vc": 0,
"can_create_va": 0,
"customer_status": "pending",
"created_at": "2024-10-31T10:14:52.000000Z"
}
}
}
Last updated