Documentation Index
Fetch the complete documentation index at: https://docs.pan.tech/llms.txt
Use this file to discover all available pages before exploring further.
Fondea una wallet con tokens de testnet para pruebas.
Solo funciona en testnet. No disponible en produccion.
Endpoint
POST https://api.pan.tech/v1/demo/fund
Autenticación
API Key
Request
{
"walletId": "pan_wallet_abc123"
}
Parámetros
| Campo | Tipo | Requerido | Descripción |
|---|
walletId | string | Si | ID de la wallet pan |
La cantidad y chain son fijos: 1 USDC en arbitrum-sepolia. Esto es para evitar abuso del faucet.
Response
200 OK
{
"success": true,
"walletId": "pan_wallet_abc123",
"amount": 1,
"chain": "arbitrum-sepolia",
"asset": "USDC",
"txHash": "0x123abc...",
"explorerUrl": "https://sepolia.arbiscan.io/tx/0x123abc..."
}
Campos de Respuesta
| Campo | Tipo | Descripción |
|---|
success | boolean | Siempre true si exitoso |
walletId | string | ID de la wallet fondeada |
amount | number | Cantidad enviada (1 USDC) |
chain | string | Chain usada (arbitrum-sepolia) |
asset | string | Token enviado (USDC) |
txHash | string | Hash de la transacción |
explorerUrl | string | Link al block explorer |
Errores
| Código | Error | Descripción |
|---|
| 401 | UNAUTHORIZED | API key inválida |
| 404 | WALLET_NOT_FOUND | Wallet no existe |
| 429 | RATE_LIMITED | Espera 60 segundos entre requests |
| 500 | FUNDING_FAILED | Error al enviar fondos |
Ejemplos
curl -X POST https://api.pan.tech/v1/demo/fund \
-H "Authorization: Bearer $PAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"walletId": "pan_wallet_abc123"
}'
Rate Limiting
| Escenario | Respuesta |
|---|
| Dentro del límite | 200 OK + txHash |
| Rate limited | 429 Too Many Requests - esperar 60 segundos |
Notas
- Rate limit: 1 request por wallet cada 60 segundos
- Cantidad fija: 1 USDC por request
- Chain fija: arbitrum-sepolia
- Solo desarrollo: No disponible en produccion
- Los fondos llegan casi instantaneamente (~10-30 segundos)