🇬🇧
Yativo Documentation
Spanish
English
English
  • Yativo
  • Introduction to Yativo
    • Financial Infrastructure
    • About Us
  • Dashboard
  • Business Plans
  • Getting Started with Yativo API
  • Yativo API Glossary
  • API reference
    • Misc.
      • Countries
      • States
      • City
  • Security and Authentication
    • Security
    • Authentication
    • Idempotency in API Requests
  • Environment
    • Environments
  • Notifications
    • Webhook
  • Compliance
    • Verification
      • KYC
      • KYB
      • KYC/KYB Update
      • KYC Status
      • Global Business Search
    • Supported Jurisdiction
    • Supported Countries, Currencies and Payment Method
  • User Management
    • Customer
      • Get Customers
      • Retrieve customer
      • Add Customer
  • Payments
    • Currencies
    • Crypto Wallets
      • Generate Wallet Address
      • Fetch Wallet Address
      • Crypto Deposit History
      • Single crypto deposit history
    • Payout
      • Payout
      • Get Payouts
      • Get Payout
      • Beneficiaries
        • Get Beneficiaries
        • Add Beneficiary Payment Details
        • Update Beneficiary
        • Archive Beneficiary
        • Add Beneficiary
    • Payin
    • Virtual Cards
      • Supported Currency, Country
      • Create card
      • Fetch card
      • Top up card
      • Get Transactions
      • Freeze and Unfreeze Card
    • Virtual Accounts
      • Create VIrtual Accounts
        • USD Virtual Account
        • Mexico Virtual Account
        • Brazil PIX QR
      • Virtual Account Management
      • Transaction History
  • Foreign Exchange
    • Exchange Rate
      • Request Quote
  • Transactions
    • Transaction Summary
    • Get Single Transaction
  • Crypto System
    • Yativo Crypto Platform API
Powered by GitBook
On this page
  1. Payments
  2. Crypto Wallets

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);
?>
import requests
import json

baseUrl = 'https://api.yativo.com'
accessToken = 'YOUR_ACCESS_TOKEN'
url = f'{baseUrl}/crypto/create-wallet'

data = {
    'currency': 'USDT.TRC20'
}

headers = {
    'Authorization': f'Bearer {accessToken}',
    'Content-Type': 'application/json'
}

response = requests.post(url, headers=headers, data=json.dumps(data))

if response.status_code != 200:
    print(f'Error: {response.status_code} - {response.text}')
else:
    responseData = response.json()
    print('Wallet address generated:', responseData)
const baseUrl = 'https://api.yativo.com';
const accessToken = 'YOUR_ACCESS_TOKEN';
const url = `${baseUrl}/crypto/create-wallet`;

const data = {
  currency: 'USDT.TRC20'
};

const options = {
  method: 'POST',
  headers: {
    'Authorization': `Bearer ${accessToken}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify(data)
};

fetch(url, options)
  .then(response => {
    if (!response.ok) {
      throw new Error(`Network response was not ok ${response.statusText}`);
    }
    return response.json();
  })
  .then(data => console.log('Wallet address generated:', data))
  .catch(error => console.error('Error:', error));

PreviousCrypto WalletsNextFetch Wallet Address

Last updated 2 months ago

Generate wallet address

post
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":"jacob@yativo.com","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": "jacob@yativo.com",
      "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"
    }
  }
}