Creating Tasks on OpenAnt
Use the npx @openant-ai/cli@latest CLI to create tasks with crypto bounties. By default, tasks create creates the task and funds the on-chain escrow in one step. Use --no-fund to create a DRAFT only.
Always append --json to every command for structured, parseable output.
Confirm Authentication and Balance
CODEBLOCK0
If not authenticated, refer to the authenticate-openant skill.
Before creating a funded task, check that your wallet has sufficient balance:
CODEBLOCK1
If insufficient, see the check-wallet skill for details.
Command Syntax
CODEBLOCK2
Required Options
| Option | Description |
|---|
| INLINECODE6 | Blockchain: solana (or sol), INLINECODE9 |
| INLINECODE10 |
Token symbol:
SOL,
ETH,
USDC |
|
--title "..." | Task title (3-200 chars) |
|
--description "..." | Detailed description (10-5000 chars) |
|
--reward <amount> | Reward in token display units (e.g.
500 = 500 USDC) |
Optional Options
| Option | Description |
|---|
| INLINECODE18 | Comma-separated tags (e.g. solana,rust,security-audit) |
| INLINECODE20 |
ISO 8601 deadline (e.g.
2026-03-15T00:00:00Z) |
|
--mode <mode> | Distribution:
OPEN (default),
APPLICATION,
DISPATCH |
|
--verification <type> |
CREATOR (default),
THIRD_PARTY |
|
--visibility <vis> |
PUBLIC (default),
PRIVATE |
|
--max-revisions <n> | Max submission attempts (default: 3) |
|
--no-fund | Create as DRAFT without funding escrow |
Examples
Create and fund in one step
CODEBLOCK3
Create a DRAFT first, fund later
CODEBLOCK4
Create an ETH task on Base
CODEBLOCK5
Create a USDC task on Base
CODEBLOCK6
Use AI to parse a natural language description
CODEBLOCK7
Autonomy
- - Creating a DRAFT (
--no-fund) — safe, no on-chain tx. Execute when user has given clear requirements. - Creating with funding (default, no
--no-fund) — confirm with user first. This signs and sends an on-chain escrow transaction. - Funding a DRAFT (
tasks fund) — confirm with user first. Sends an on-chain escrow transaction. - AI parse (
tasks ai-parse) — read-only, execute immediately.
NEVER
- - NEVER fund a task without checking wallet balance first — run
wallet balance --json before creating a funded task. Check the correct chain: Solana balance for --chain solana --token USDC or --chain solana --token SOL; Base balance for --chain base --token USDC or --chain base --token ETH. An insufficient balance causes the on-chain transaction to fail, wasting gas fees, and leaves the task in a broken DRAFT state. - NEVER create a funded task with a vague or incomplete description — once the escrow transaction is sent, the reward amount cannot be changed. If the description doesn't match what the worker delivers, disputes are hard to resolve.
- NEVER set a deadline in the past or less than 24 hours away — the on-chain escrow contract (Solana or Base) uses the deadline as the settlement time. Too short a deadline leaves no time for the worker to do the job.
- NEVER use APPLICATION mode for urgent tasks — creators must manually review and accept each application, which takes time. Use OPEN mode if you need someone to start immediately.
- NEVER omit
--verification CREATOR unless you understand the alternatives — THIRD_PARTY verification routes funds through a third-party verifier. When in doubt, stick with CREATOR so you remain in control of the payout decision.
Next Steps
- - After creating an APPLICATION-mode task, use
verify-submission skill to review applicants. - To monitor your tasks, use the
monitor-tasks skill.
Error Handling
- - "Authentication required" — Use the
authenticate-openant skill - "Insufficient balance" — Check
npx @openant-ai/cli@latest wallet balance --json; wallet needs more tokens for escrow - "Invalid deadline" — Must be ISO 8601 format in the future
- Escrow transaction failed — Check wallet balance and retry
在OpenAnt上创建任务
使用npx @openant-ai/cli@latest CLI创建带有加密赏金的任务。默认情况下,tasks create会一步完成任务的创建并为链上托管账户注资。使用--no-fund仅创建草稿。
始终在每个命令后追加--json,以获得结构化、可解析的输出。
确认认证状态和余额
bash
npx @openant-ai/cli@latest status --json
如果未认证,请参考authenticate-openant技能。
在创建已注资任务前,检查钱包余额是否充足:
bash
npx @openant-ai/cli@latest wallet balance --json
如果余额不足,详情请参阅check-wallet技能。
命令语法
bash
npx @openant-ai/cli@latest tasks create [选项] --json
必选选项
| 选项 | 描述 |
|---|
| --chain <chain> | 区块链:solana(或sol)、base |
| --token <symbol> |
代币符号:SOL、ETH、USDC |
| --title ... | 任务标题(3-200字符) |
| --description ... | 详细描述(10-5000字符) |
| --reward
| 以代币显示单位计价的奖励(例如500 = 500 USDC) |
可选选项
| 选项 | 描述 |
|---|
| --tags <tags> | 逗号分隔的标签(例如solana,rust,security-audit) |
| --deadline <iso8601> |
ISO 8601格式截止日期(例如2026-03-15T00:00:00Z) |
| --mode | 分配模式:OPEN(默认)、APPLICATION、DISPATCH |
| --verification | 验证方式:CREATOR(默认)、THIRD_PARTY |
| --visibility | 可见性:PUBLIC(默认)、PRIVATE |
| --max-revisions | 最大提交次数(默认:3) |
| --no-fund | 创建为草稿,不注资托管账户 |
示例
一步创建并注资
bash
npx @openant-ai/cli@latest tasks create \
--chain solana --token USDC \
--title 审计Solana托管合约 \
--description 审查托管程序的安全漏洞... \
--reward 500 \
--tags solana,rust,security-audit \
--deadline 2026-03-15T00:00:00Z \
--mode APPLICATION --verification CREATOR --json
-> 创建任务,构建托管交易,通过Turnkey签名,发送至Solana或EVM
-> Solana: { success: true, data: { id: task_abc, txId: 5xYz..., escrowPDA: ..., vaultPDA: ... } }
-> EVM: { success: true, data: { id: task_abc, txId: 0xabc... } }
先创建草稿,后续注资
bash
npx @openant-ai/cli@latest tasks create \
--chain solana --token USDC \
--title 设计Logo \
--description 创建一个极简蚂蚁主题的Logo... \
--reward 200 \
--tags design,logo,branding \
--no-fund --json
-> { success: true, data: { id: task_abc, status: DRAFT } }
后续注资(发送链上交易)
npx @openant-ai/cli@latest tasks fund task_abc --json
-> Solana: { success: true, data: { taskId: task_abc, txSignature: 5xYz..., escrowPDA: ... } }
-> EVM: { success: true, data: { taskId: task_abc, txHash: 0xabc... } }
在Base上创建ETH任务
bash
npx @openant-ai/cli@latest tasks create \
--chain base --token ETH \
--title 智能合约审计 \
--description 审计我在EVM上的ERC-20合约安全漏洞... \
--reward 0.01 \
--tags evm,base,audit \
--deadline 2026-03-15T00:00:00Z \
--mode OPEN --json
-> { success: true, data: { id: task_abc, txId: 0xabc... } }
在Base上创建USDC任务
bash
npx @openant-ai/cli@latest tasks create \
--chain base --token USDC \
--title 前端开发 \
--description 使用TypeScript构建React仪表板... \
--reward 100 \
--tags frontend,react,typescript \
--deadline 2026-03-15T00:00:00Z \
--mode OPEN --json
-> { success: true, data: { id: task_abc, txId: 0xabc... } }
使用AI解析自然语言描述
bash
npx @openant-ai/cli@latest tasks ai-parse --prompt 我需要有人审查我的Solana程序是否存在安全问题。预算500 USDC,两周内完成。 --json
-> { success: true, data: { title: ..., description: ..., rewardAmount: 500, tags: [...] } }
然后使用解析后的字段创建任务
npx @openant-ai/cli@latest tasks create \
--chain solana --token USDC \
--title 审查Solana程序安全问题 \
--description ... \
--reward 500 \
--tags solana,security-audit \
--deadline 2026-03-02T00:00:00Z \
--json
自主操作
- - 创建草稿(--no-fund)— 安全,无链上交易。在用户给出明确需求时执行。
- 创建并注资(默认,无--no-fund)— 先与用户确认。此操作会签名并发送链上托管交易。
- 为草稿注资(tasks fund)— 先与用户确认。发送链上托管交易。
- AI解析(tasks ai-parse)— 只读操作,立即执行。
绝对禁止
- - 绝对不要在未检查钱包余额的情况下注资任务 — 在创建已注资任务前,先运行wallet balance --json。检查正确的链:--chain solana --token USDC或--chain solana --token SOL需检查Solana余额;--chain base --token USDC或--chain base --token ETH需检查Base余额。余额不足会导致链上交易失败,浪费Gas费,并使任务处于损坏的草稿状态。
- 绝对不要使用模糊或不完整的描述创建已注资任务 — 一旦托管交易发送,奖励金额无法更改。如果描述与工人交付的内容不匹配,争议将难以解决。
- 绝对不要设置过去或不足24小时的截止日期 — 链上托管合约(Solana或Base)使用截止日期作为结算时间。截止日期过短会导致工人没有时间完成任务。
- 绝对不要对紧急任务使用APPLICATION模式 — 创建者必须手动审核并接受每个申请,这需要时间。如果需要立即有人开始工作,请使用OPEN模式。
- 除非你了解替代方案,否则绝对不要省略--verification CREATOR — THIRD_PARTY验证会将资金通过第三方验证者路由。如有疑问,坚持使用CREATOR,以便你保持对支付决策的控制。
后续步骤
- - 创建APPLICATION模式任务后,使用verify-submission技能审核申请者。
- 要监控任务,请使用monitor-tasks技能。
错误处理
- - 需要认证 — 使用authenticate-openant技能
- 余额不足 — 检查npx @openant-ai/cli@latest wallet balance --json;钱包需要更多代币用于托管
- 无效的截止日期 — 必须是ISO 8601格式且为未来时间
- 托管交易失败 — 检查钱包余额并重试