Shred Delivery and Sender are now live! Get earliest access to raw Solana data and optimized transaction sending. Learn about Shred Delivery | Learn about Sender
简体中文
保护您的 Helius Solana API 密钥免受恶意行为者的侵害。访问控制规则、RPC 代理和安全最佳实践,以防止未经授权的使用和费用。
// ❌ Don't do this const apiKey = "your-api-key-here"; // ✅ Do this instead const apiKey = process.env.HELIUS_API_KEY;
const getApiKey = () => { switch (process.env.NODE_ENV) { case 'production': return process.env.HELIUS_API_KEY_PROD; case 'staging': return process.env.HELIUS_API_KEY_STAGING; default: return process.env.HELIUS_API_KEY_DEV; } };
生成新密钥
更新应用程序
彻底测试
撤销旧密钥
✅ 开发安全
✅ 生产安全
✅ 紧急响应
.gitignore
此页面对您有帮助吗?