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。
快速示例
{
"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"
}
}
}
支持的配置
| 货币 | 网络 | 地址格式 |
|---|
| USDC | Polygon, Solana, Ethereum, Arbitrum, BSC, Tron | 网络特定 |
| USDT | Polygon, Solana, Ethereum, Arbitrum, BSC, Tron | 网络特定 |
网络指南
Polygon
费用: 低于 $0.01
速度: 2-5 分钟
格式: 0x…
Solana
费用: 低于 $0.001
速度: 30-60 秒
格式: Base58
Ethereum
费用: $5-50
速度: 10-15 分钟
格式: 0x…
地址验证
使用客户端验证:
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;
};
下一步
创建 On-Ramp
在 on-ramp 交易中使用钱包