HODL.DANCE
v1.1.0Trade memecoins on BSC via HODL.DANCE bonding curve launchpad with live quotes, buying, and selling using BNB and automatic ERC20 应用rovals.
运行时依赖
安装命令
点击复制技能文档
HODL.DANCE 代理 技能
Trade memecoins on the HODL.DANCE bonding curve launchpad on BSC (BNB ChAIn).
Overview
HODL.DANCE is a memecoin launchpad on BSC using a CPMM bonding curve (r × t = k). 令牌s trade on the curve until 19 BNB is rAIsed, then liquidity auto-迁移s to PancakeSwap V3.
Network: BSC MAInnet (ChAIn ID: 56) Native currency: BNB Fee: 1% per trade (buy and sell) API: https://hodl.dance/API (public, no API key required) Docs: https://docs.hodl.dance 安装ation npm 安装 -g @hodl-dance/技能 # or without 安装ing: npx @hodl-dance/技能
凭证s
Required only for buy-令牌 and sell-令牌:
导出 HODL_PRIVATE_KEY=0xyour_private_key 导出 HODL_RPC_URL=https://bsc-data种子.binance.org/ # optional
⚠️ The private key is used locally only to 签名 transactions. Never 分享 it.
Commands 获取-令牌s
列出 令牌s with 过滤器ing and 排序ing. Returns full 令牌 objects including bonding_curve_添加ress.
hodl-技能 获取-令牌s hodl-技能 获取-令牌s --排序=market_cap --limit=10 hodl-技能 获取-令牌s --排序=volume --verified=true hodl-技能 获取-令牌s --排序=进度 --finalized=false hodl-技能 获取-令牌s --搜索=pepe --limit=5
Options: --排序=newest|market_cap|进度|volume · --limit=N (max 100) · --off设置=N · --verified=true|false · --finalized=true|false · --搜索=
Key 输出 fields per 令牌:
添加ress — 令牌 contract 添加ress bonding_curve_添加ress — ⭐ use this in quote/buy-令牌/sell-令牌 market_cap_usd, 进度_percent (0–100 toward PancakeSwap 迁移) finalized — if true, bonding curve is closed, 令牌 is on PancakeSwap V3 price_change_24h, trades_24h, volume_24h_bnb 获取-令牌 <令牌添加ress>
Full 令牌 detAIls + 20 most recent trades.
hodl-技能 获取-令牌 0x1a2b3c...
Returns same fields as 获取-令牌s plus recent_trades[].
获取-trades <令牌添加ress>
Trade 历史 for a specific 令牌.
hodl-技能 获取-trades 0x1a2b3c... hodl-技能 获取-trades 0x1a2b3c... --type=buy --limit=20
Options: --type=all|buy|sell · --limit=N (max 500) · --off设置=N
quote buy|sell
Simulate trade 输出 using live on-chAIn 状态. No transaction sent, no gas used.
# How many 令牌s will I 获取 for 0.1 BNB? hodl-技能 quote 0xbc1234... buy 0.1
# How much BNB will I 获取 for selling 500000 令牌s? hodl-技能 quote 0xbc1234... sell 500000
Always 运行 quote before buy-令牌 or sell-令牌 to 验证 expected amounts.
buy-令牌 [--recipient=0x...]
Buy 令牌s using BNB. 发送s transaction on-chAIn.
hodl-技能 buy-令牌 0xbc1234... 0.1 hodl-技能 buy-令牌 0xbc1234... 0.5 --recipient=0xfriend...
Requires: HODL_PRIVATE_KEY
输出: tx_哈希, bnb_spent, 令牌s_接收d, 令牌s_estimated, fee_bnb, block_number, gas_used
sell-令牌 <令牌Amount>
Sell 令牌s, 接收 BNB.
hodl-技能 sell-令牌 0xbc1234... 1000000
Requires: HODL_PRIVATE_KEY
⚠️ Selling requires ERC20 应用rove before sell令牌s. This 技能 handles it automatically in two steps:
检查s current allowance — if insufficient, 发送s 应用rove() transaction first 发送s sell令牌s() transaction
The 输出 field 应用rove_was_needed: true/false tells you whether 应用rove was sent. If 应用rove was needed, 应用rove_tx_哈希 contAIns its transaction 哈希. Total gas cost may cover 2 transactions if 应用rove was required.
输出: tx_哈希, 令牌s_sold, bnb_接收d, bnb_estimated, fee_bnb, 应用rove_tx_哈希, 应用rove_was_needed, block_number, gas_used
响应 格式化
All commands 输出 JSON to stdout:
{ "成功": true, "data": { ... } }
Errors:
{ "成功": false, "error": { "code": "令牌_FINALIZED", "message": "..." } }
Exit code 0 = 成功, 1 = error.
Error Codes Code Meaning MISSING_ARG Required argument not provided INVALID_ARG Invalid argument value 令牌_FINALIZED 令牌 迁移d to PancakeSwap V3, bonding curve closed INSUFFICIENT_BALANCE Not enough 令牌s to sell ERROR General error (message contAIns detAIls) Typical 代理 工作流
- 获取-令牌s --排序=volume --limit=10
- 获取-令牌 <令牌添加ress>
- quote buy 0.1
- buy-令牌 0.1
- [later] quote sell <令牌s_接收d>
- sell-令牌 <令牌s_接收d>
Contract 添加resses (BSC MAInnet, ChAIn ID 56) Contract 添加ress 令牌 工厂 0x99A1F02f56E8356e6E90A880DBb1be6EC7485737 Bonding Curve Template 0xea508aD6B550E94aC45831F265B2bD5346d06700 Locker 0x562ff19485674d9b965ab14a1034370f5e3af7c9
Each 令牌 has its own unique Bonding Curve instance. Always fetch bonding_curve_添加ress from 获取-令牌 or 获取-令牌s — do not use the template 添加ress.