Blowfish Token Launch
Launch tokens on Solana programmatically via the Blowfish Agent API.
Base URL: INLINECODE0
Prerequisites
- - A Solana keypair (ed25519). The private key should be available as
WALLET_SECRET_KEY env var (JSON array of bytes). - Node.js 18+ or Bun with
@solana/web3.js, tweetnacl, INLINECODE4
Workflow
- 1. Authenticate — wallet-based challenge-response → JWT (15 min expiry)
- Launch — POST token params → receive INLINECODE5
- Poll — GET status by
eventId until success or INLINECODE8 - Done — token is live on Solana via Meteora DBC
Quick Launch
Run the bundled script:
CODEBLOCK0
API Endpoints
Authentication
- -
POST /api/auth/challenge — { wallet } → INLINECODE11 - INLINECODE12 —
{ wallet, nonce, signature } → INLINECODE14
Sign message: Sign this message to authenticate: <nonce> with ed25519, base58-encode signature.
Tokens
- -
POST /api/v1/tokens/launch — { name, ticker, description?, imageUrl? } → { eventId } (Bearer auth) - INLINECODE19 — poll until
success/failed/ INLINECODE22 - INLINECODE23 — list your tokens
- INLINECODE24 — get specific token
Fee Claiming
- -
GET /api/v1/claims/ — get eligible claims - INLINECODE26 — claim fees for a token
Token Parameters
| Field | Rules |
|---|
| INLINECODE27 | 1-255 chars, required |
| INLINECODE28 |
2-10 chars,
^[A-Z0-9]+$, required |
|
description | max 1000 chars, optional |
|
imageUrl | max 255 chars, optional |
Error Handling
- - 409 — ticker taken, choose another
- 401 — JWT expired, re-authenticate
- Rate limit — 1 launch per agent per UTC day
Full API Reference
See references/api.md for complete endpoint documentation.
Blowfish 代币发行
通过 Blowfish Agent API 以编程方式在 Solana 上发行代币。
基础 URL: https://api-blowfish.neuko.ai
前置条件
- - Solana 密钥对(ed25519)。私钥应作为 WALLETSECRETKEY 环境变量提供(JSON 字节数组)。
- Node.js 18+ 或 Bun,需安装 @solana/web3.js、tweetnacl、bs58
工作流程
- 1. 身份验证 — 基于钱包的挑战-响应 → JWT(15 分钟有效期)
- 发行 — POST 代币参数 → 接收 eventId
- 轮询 — 通过 eventId 获取状态,直到 success 或 failed
- 完成 — 代币通过 Meteora DBC 在 Solana 上生效
快速发行
运行捆绑脚本:
bash
WALLETSECRETKEY=[...] bun run scripts/blowfish-launch.ts \
--name 我的代币 \
--ticker MYTK \
--description 可选描述 \
--imageUrl https://example.com/logo.png
API 端点
身份验证
- - POST /api/auth/challenge — { wallet } → { nonce }
- POST /api/auth/verify — { wallet, nonce, signature } → { token }
签名消息:签署此消息以进行身份验证:,使用 ed25519,base58 编码签名。
代币
- - POST /api/v1/tokens/launch — { name, ticker, description?, imageUrl? } → { eventId }(Bearer 认证)
- GET /api/v1/tokens/launch/status/:eventId — 轮询直到 success/failed/rate_limited
- GET /api/v1/tokens/ — 列出您的代币
- GET /api/v1/tokens/:id — 获取特定代币
费用领取
- - GET /api/v1/claims/ — 获取符合条件的领取项
- POST /api/v1/claims/:tokenId — 领取代币费用
代币参数
| 字段 | 规则 |
|---|
| name | 1-255 个字符,必填 |
| ticker |
2-10 个字符,^[A-Z0-9]+$,必填 |
| description | 最多 1000 个字符,可选 |
| imageUrl | 最多 255 个字符,可选 |
错误处理
- - 409 — 代码已被占用,请选择其他代码
- 401 — JWT 已过期,请重新进行身份验证
- 速率限制 — 每个代理每个 UTC 日只能发行一次
完整 API 参考
完整端点文档请参见 references/api.md。