开始使用
快速开始
3 分钟内通过 BoltTx 发送你的第一笔交易。
1
获取 API Key
在 bolttx.io/signup 创建免费账户,并在仪表板中生成 API Key。无需信用卡。
2
构建并签名你的交易
使用任何 Solana SDK 在本地构建并签名交易。BoltTx 接受标准的 base64 编码序列化交易格式。由于签名本身保证了交易完整性,你签名的字节就是链上最终落块的内容 —— 所有交易按你设置的 tip 公平排序:tip 越高,优先级越高,无抢跑,无隐藏费用。
必需:包含 Tip
在交易指令中添加一个 SystemProgram 转账,接收方为任意 BoltTx Tip 地址。Tip 金额由你当前的套餐决定(入门:最低 0.0008 SOL)。每笔 Tip 都会累计 Bolt Points —— 积累足够后会自动升级到费率更低的档位。
Endpoint
选择离你最近的区域。HTTPS 和 HTTP 都支持。
节点端点
选择离你的 bot 最近的区域洛杉矶
US-Whttps://la.bolttx.io/v1/sendhttp://la.bolttx.io/v1/send新泽西
US-Ehttps://nj.bolttx.io/v1/sendhttp://nj.bolttx.io/v1/send法兰克福
EUhttps://fr.bolttx.io/v1/sendhttp://fr.bolttx.io/v1/send新加坡
APAChttps://sg.bolttx.io/v1/sendhttp://sg.bolttx.io/v1/send选择离你的 bot 最近的区域,延迟最低。
使用 keep-alive 获得最佳性能
强烈推荐:HTTPS + keep-alive —— 和明文 HTTP 一样快,同时 API key 全程加密。
- • Node.js:
new https.Agent({ keepAlive: true })/http.Agent - • Python:
requests.Session()(两种协议都适用) - • Go:
net/http(默认 Transport 已自动复用) - • Rust:
reqwest::Client(全局复用同一个 Client)
3
发送到 BoltTx
一次 POST 请求即可。就是这么简单。
# Build and sign your transaction locally, then base64-encode it.
curl -X POST https://bolttx.io/v1/send \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"transaction": "<base64_encoded_signed_transaction>",
"options": {
"skip_preflight": true,
"max_retries": 3,
"anti_mev": true
}
}'4
交易已确认
BoltTx 会立即返回交易签名。你的交易通过我们优化的基础设施投递,配备专属 SWQoS 和反 MEV 保护。
响应
{
"success": true,
"signature": "5xKn...9mPq",
"slot": 234567890
}已经在用 Solana RPC 客户端?
BoltTx 还提供 Solana JSON-RPC 代理端点。只需替换 Connection URL —— 无需改代码。
const connection = new Connection("https://bolttx.io/?api-key=YOUR_API_KEY");
await connection.sendRawTransaction(signedTx.serialize());