Skip to main content
Obtiene la wallet asociada a un usuario.

Endpoint

GET https://api.pan.dev/v1/wallets/:userId

Autenticacion

API Key o X402

Parametros de URL

ParametroTipoDescripcion
userIdstringID del usuario en tu app

Response

200 OK

{
  "id": "pan_wallet_a1b2c3d4e5f6",
  "userId": "usuario_123",
  "address": "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb",
  "chainType": "ethereum",
  "chains": [
    "ethereum",
    "ethereum-sepolia",
    "arbitrum",
    "arbitrum-sepolia",
    "base",
    "base-sepolia"
  ],
  "metadata": {
    "nombre": "Juan Perez"
  },
  "createdAt": "2024-01-15T10:30:00Z"
}

Errores

CodigoErrorDescripcion
401UNAUTHORIZEDAPI key invalida
404WALLET_NOT_FOUNDUsuario no tiene wallet

Ejemplos

curl -X GET "https://api.pan.dev/v1/wallets/usuario_123" \
  -H "Authorization: Bearer $PAN_API_KEY"