🇬🇧
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

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
import requests

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

headers = {
    'Authorization': f'Bearer {accessToken}'
}

response = requests.get(url, headers=headers)

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

const options = {
  method: 'GET',
  headers: {
    'Authorization': `Bearer ${accessToken}`
  }
};

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('Crypto wallets:', data))
  .catch(error => console.error('Error:', error));

PreviousGenerate Wallet AddressNextCrypto Deposit History

Last updated 2 months ago

Get Wallets

get
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
  }
}