> ## Documentation Index
> Fetch the complete documentation index at: https://docs.killb.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 加密货币钱包

> 设置加密货币钱包账户

## 概览

加密货币钱包账户代表区块链地址，用户在 on-ramp 交易期间在这些地址接收 USDC 或 USDT。

## 快速示例

```json theme={null}
{
  "type": "WALLET",
  "userId": "user-id",
  "externalId": "wallet-1",
  "data": {
    "firstName": "Juan",
    "lastName": "García",
    "email": "juan@example.com",
    "phone": "+573001234567",
    "currency": "USDC",
    "network": "POLYGON",
    "address": "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb",
    "countryCode": "CO",
    "document": {
      "type": "NUIP",
      "number": "1234567890",
      "issuedCountryCode": "CO"
    }
  }
}
```

## 支持的配置

| 货币   | 网络                                             | 地址格式 |
| ---- | ---------------------------------------------- | ---- |
| USDC | Polygon, Solana, Ethereum, Arbitrum, BSC, Tron | 网络特定 |
| USDT | Polygon, Solana, Ethereum, Arbitrum, BSC, Tron | 网络特定 |

## 网络指南

<CardGroup cols={3}>
  <Card title="Polygon" icon="triangle">
    **费用：** 低于 \$0.01\
    **速度：** 2-5 分钟\
    **格式：** 0x...
  </Card>

  <Card title="Solana" icon="s">
    **费用：** 低于 \$0.001\
    **速度：** 30-60 秒\
    **格式：** Base58
  </Card>

  <Card title="Ethereum" icon="e">
    **费用：** \$5-50\
    **速度：** 10-15 分钟\
    **格式：** 0x...
  </Card>
</CardGroup>

## 地址验证

使用客户端验证：

```javascript theme={null}
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;
};
```

## 下一步

<CardGroup cols={2}>
  <Card title="创建 On-Ramp" icon="arrow-up" href="/zh/guides/ramps/on-ramp">
    在 on-ramp 交易中使用钱包
  </Card>

  <Card title="预充值指南" icon="bolt" href="/zh/guides/pre-fund/pre-fund-accounts">
    设置即时结算
  </Card>
</CardGroup>
