Saltar al contenido principal

Visión General

Las cuentas de billetera cripto representan direcciones blockchain donde los usuarios reciben USDC o USDT durante transacciones on-ramp.

Ejemplo Rápido

{
  "type": "WALLET",
  "userId": "user-id",
  "externalId": "wallet-1",
  "data": {
    "firstName": "Juan",
    "lastName": "García",
    "email": "[email protected]",
    "phone": "+573001234567",
    "currency": "USDC",
    "network": "POLYGON",
    "address": "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb",
    "countryCode": "CO",
    "document": {
      "type": "NUIP",
      "number": "1234567890",
      "issuedCountryCode": "CO"
    }
  }
}

Configuraciones Soportadas

MonedaRedesFormato de Dirección
USDCPolygon, Solana, Ethereum, Arbitrum, BSC, TronEspecífico de red
USDTPolygon, Solana, Ethereum, Arbitrum, BSC, TronEspecífico de red

Guía de Redes

Polygon

Tarifa: Menos de $0,01
Velocidad: 2-5 min
Formato: 0x…

Solana

Tarifa: Menos de $0,001
Velocidad: 30-60 seg
Formato: Base58

Ethereum

Tarifa: $5-50
Velocidad: 10-15 min
Formato: 0x…

Validación de Dirección

Usa validación del lado del cliente:
import { ethers } from 'ethers';

const validateWalletAddress = (address, network) => {
  if (['POLYGON', 'ERC20', 'ARBITRUM', 'BSC'].includes(network)) {
    return ethers.utils.isAddress(address);
  }
  
  if (network === 'SOLANA') {
    return /^[1-9A-HJ-NP-Za-km-z]{32,44}$/.test(address);
  }
  
  if (network === 'TRON') {
    return /^T[a-zA-Z0-9]{33}$/.test(address);
  }
  
  return false;
};

Próximos Pasos