Blinko
Play Blinko headlessly on Abstract. Provably fair Plinko with on-chain settlement.
Important
- - This skill signs on-chain transactions that spend real ETH. Use a dedicated hot wallet with only the funds you're willing to risk.
- Each game costs gas (Abstract chain) on top of your bet amount.
- Your private key is used locally to sign messages and transactions. It is sent to the Abstract RPC and Blinko API as signed outputs only, never as plaintext.
- Agents can invoke this skill autonomously when installed.
Quick Start
Play a Game
CODEBLOCK0
Check Stats
CODEBLOCK1
Scripts
| Script | Purpose |
|---|
| INLINECODE0 | Play a full game (auth → create → commit → play → settle) |
| INLINECODE1 |
View profile, games, leaderboard, honey balance |
Play
CODEBLOCK2
| Flag | Effect |
|---|
| INLINECODE2 | Hard mode (0% main game RTP, must trigger bonus to win) |
| INLINECODE3 |
V2 algorithm and config |
Examples:
CODEBLOCK3
Bet limits: 0.0001 - 0.1 ETH
Stats
CODEBLOCK4
| Command | Shows |
|---|
| INLINECODE4 | Name, honey, game stats, streak |
| INLINECODE5 |
Last N games with results |
|
leaderboard | Top 10 + your rank |
|
honey | Honey balance breakdown |
How It Works
CODEBLOCK5
- 1. Login — Sign message with wallet, get JWT
- Create — API generates game seed, returns server signature
- Commit — Call
createGame() on-chain with ETH bet + random salt - Play — API combines seeds, simulates physics, returns result
- Settle — Call
cashOut() (win) or markGameAsLost() (loss) on-chain
All games are provably fair via commit-reveal scheme.
Game Mechanics
- - 10 balls dropped through 8 rows of pins
- Bin multipliers: 2x, 1.5x, 0.5x, 0.2x, 0.1x, 0.1x, 0.2x, 0.5x, 1.5x, 2x
- Bonus: Collect B-O-N-U-S letters to trigger bonus rounds (up to level 9)
- Honey: Earned by hitting special pins (requires a referrer)
Key Information
| Item | Value |
|---|
| Chain | Abstract (2741) |
| RPC |
https://api.abs.xyz (hardcoded) |
| Contract |
0x1859072d67fdD26c8782C90A1E4F078901c0d763 |
| API |
https://api.blinko.gg |
| Game |
blinko.gg |
Environment Variables
| Variable | Required | Description |
|---|
| INLINECODE14 | Yes (for play) | Private key for signing transactions. Use a hot wallet. |
Dependencies
CODEBLOCK6
Blinko
在 Abstract 上无头运行 Blinko。可验证公平的 Plinko 游戏,支持链上结算。
重要提示
- - 此技能会签署消耗真实 ETH 的链上交易。 请使用专用热钱包,仅存入您愿意承担风险的资金。
- 每局游戏除投注金额外,还需支付 Gas 费用(Abstract 链)。
- 您的私钥仅在本地用于签署消息和交易。私钥仅以签名输出的形式发送至 Abstract RPC 和 Blinko API,绝不会以明文形式传输。
- 安装后,代理可自主调用此技能。
快速开始
进行一局游戏
bash
export WALLET
PRIVATEKEY=0x...
node scripts/play-blinko.js 0.001
查看统计数据
bash
node scripts/stats.js 0xYourAddress profile
脚本
| 脚本 | 用途 |
|---|
| play-blinko.js | 完成一局完整游戏(认证 → 创建 → 提交 → 游戏 → 结算) |
| stats.js |
查看个人资料、游戏记录、排行榜、蜂蜜余额 |
游戏
bash
export WALLETPRIVATEKEY=0x...
node scripts/play-blinko.js [betETH] [--hard] [--v2]
| 标志 | 效果 |
|---|
| --hard | 困难模式(主游戏 RTP 为 0%,必须触发奖励才能获胜) |
| --v2 |
V2 算法和配置 |
示例:
bash
node scripts/play-blinko.js 0.001 # 普通模式,0.001 ETH
node scripts/play-blinko.js 0.005 --hard # 困难模式
node scripts/play-blinko.js 0.002 --v2 # V2 算法
node scripts/play-blinko.js 0.003 --hard --v2 # V2 困难模式
投注限制: 0.0001 - 0.1 ETH
统计数据
bash
node scripts/stats.js
[command] [limit]
| 命令 | 显示内容 |
|---|
| profile | 名称、蜂蜜、游戏统计、连胜记录 |
| games [N] |
最近 N 局游戏及结果 |
| leaderboard | 前十名 + 您的排名 |
| honey | 蜂蜜余额明细 |
工作原理
API → 链 → API → 链
- 1. 登录 — 使用钱包签署消息,获取 JWT
- 创建 — API 生成游戏种子,返回服务器签名
- 提交 — 在链上调用 createGame(),附带 ETH 投注金额和随机盐值
- 游戏 — API 合并种子,模拟物理过程,返回结果
- 结算 — 在链上调用 cashOut()(获胜)或 markGameAsLost()(失败)
所有游戏均通过提交-揭示方案实现可验证公平。
游戏机制
- - 10 个球 从 8 行钉子中落下
- 格子倍数: 2x、1.5x、0.5x、0.2x、0.1x、0.1x、0.2x、0.5x、1.5x、2x
- 奖励: 收集 B-O-N-U-S 字母以触发奖励轮次(最高 9 级)
- 蜂蜜: 通过击中特殊钉子获得(需要推荐人)
关键信息
https://api.abs.xyz(硬编码) |
| 合约 | 0x1859072d67fdD26c8782C90A1E4F078901c0d763 |
| API | https://api.blinko.gg |
| 游戏 |
blinko.gg |
环境变量
| 变量 | 必需 | 描述 |
|---|
| WALLETPRIVATEKEY | 是(用于游戏) | 签署交易的私钥。请使用热钱包。 |
依赖项
bash
npm install ethers@6