create-task

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Creating Tasks on OpenAnt

在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.
使用
npx @openant-ai/cli@latest
CLI创建带有加密货币赏金的任务。默认情况下,
tasks create
会在同一个步骤中完成任务创建 链上托管资金充值。使用
--no-fund
参数仅创建草稿任务。
所有命令都必须追加
--json
以获得结构化、可解析的输出。

Confirm Authentication and Balance

确认认证状态与余额

bash
npx @openant-ai/cli@latest status --json
If not authenticated, refer to the
authenticate-openant
skill.
Before creating a funded task, check that your wallet has sufficient balance:
bash
npx @openant-ai/cli@latest wallet balance --json
If insufficient, see the
check-wallet
skill for details.
bash
npx @openant-ai/cli@latest status --json
如果未完成认证,请参考
authenticate-openant
skill。
在创建带资金的任务前,请检查你的钱包余额是否充足:
bash
npx @openant-ai/cli@latest wallet balance --json
如果余额不足,请查看
check-wallet
skill了解详情。

Command Syntax

命令语法

bash
npx @openant-ai/cli@latest tasks create [options] --json
bash
npx @openant-ai/cli@latest tasks create [options] --json

Required Options

必选参数

OptionDescription
--chain <chain>
Blockchain:
solana
(or
sol
),
base
--token <symbol>
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)
参数说明
--chain <chain>
区块链:
solana
(或
sol
)、
base
--token <symbol>
代币符号:
SOL
ETH
USDC
--title "..."
任务标题(3-200个字符)
--description "..."
任务详细描述(10-5000个字符)
--reward <amount>
以代币为单位的奖励金额(例如
500
代表500 USDC)

Optional Options

可选参数

OptionDescription
--tags <tags>
Comma-separated tags (e.g.
solana,rust,security-audit
)
--deadline <iso8601>
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
参数说明
--tags <tags>
英文逗号分隔的标签(例如
solana,rust,security-audit
--deadline <iso8601>
ISO 8601格式的截止时间(例如
2026-03-15T00:00:00Z
--mode <mode>
任务分配模式:
OPEN
(默认)、
APPLICATION
DISPATCH
--verification <type>
验收方式:
CREATOR
(默认)、
THIRD_PARTY
--visibility <vis>
可见性:
PUBLIC
(默认)、
PRIVATE
--max-revisions <n>
最多提交次数(默认3次)
--no-fund
创建为草稿任务,不充值托管资金

Examples

示例

Create and fund in one step

一步完成任务创建与资金托管

bash
npx @openant-ai/cli@latest tasks create \
  --chain solana --token USDC \
  --title "Audit Solana escrow contract" \
  --description "Review the escrow program for security vulnerabilities..." \
  --reward 500 \
  --tags solana,rust,security-audit \
  --deadline 2026-03-15T00:00:00Z \
  --mode APPLICATION --verification CREATOR --json
bash
npx @openant-ai/cli@latest tasks create \
  --chain solana --token USDC \
  --title "Audit Solana escrow contract" \
  --description "Review the escrow program for security vulnerabilities..." \
  --reward 500 \
  --tags solana,rust,security-audit \
  --deadline 2026-03-15T00:00:00Z \
  --mode APPLICATION --verification CREATOR --json

-> Creates task, builds escrow tx, signs via Turnkey, sends to Solana or EVM

-> 创建任务,生成托管交易,通过Turnkey签名,发送到Solana或EVM链

-> Solana: { "success": true, "data": { "id": "task_abc", "txId": "5xYz...", "escrowPDA": "...", "vaultPDA": "..." } }

-> Solana返回: { "success": true, "data": { "id": "task_abc", "txId": "5xYz...", "escrowPDA": "...", "vaultPDA": "..." } }

-> EVM: { "success": true, "data": { "id": "task_abc", "txId": "0xabc..." } }

-> EVM返回: { "success": true, "data": { "id": "task_abc", "txId": "0xabc..." } }

undefined
undefined

Create a DRAFT first, fund later

先创建草稿,后续再充值

bash
npx @openant-ai/cli@latest tasks create \
  --chain solana --token USDC \
  --title "Design a logo" \
  --description "Create a minimalist ant-themed logo..." \
  --reward 200 \
  --tags design,logo,branding \
  --no-fund --json
bash
npx @openant-ai/cli@latest tasks create \
  --chain solana --token USDC \
  --title "Design a logo" \
  --description "Create a minimalist ant-themed logo..." \
  --reward 200 \
  --tags design,logo,branding \
  --no-fund --json

-> { "success": true, "data": { "id": "task_abc", "status": "DRAFT" } }

-> 返回: { "success": true, "data": { "id": "task_abc", "status": "DRAFT" } }

Fund it later (sends on-chain tx)

后续再充值(发送链上交易)

npx @openant-ai/cli@latest tasks fund task_abc --json
npx @openant-ai/cli@latest tasks fund task_abc --json

-> Solana: { "success": true, "data": { "taskId": "task_abc", "txSignature": "5xYz...", "escrowPDA": "..." } }

-> Solana返回: { "success": true, "data": { "taskId": "task_abc", "txSignature": "5xYz...", "escrowPDA": "..." } }

-> EVM: { "success": true, "data": { "taskId": "task_abc", "txHash": "0xabc..." } }

-> EVM返回: { "success": true, "data": { "taskId": "task_abc", "txHash": "0xabc..." } }

undefined
undefined

Create an ETH task on Base

在Base链上创建ETH奖励任务

bash
npx @openant-ai/cli@latest tasks create \
  --chain base --token ETH \
  --title "Smart contract audit" \
  --description "Audit my ERC-20 contract on EVM for security vulnerabilities..." \
  --reward 0.01 \
  --tags evm,base,audit \
  --deadline 2026-03-15T00:00:00Z \
  --mode OPEN --json
bash
npx @openant-ai/cli@latest tasks create \
  --chain base --token ETH \
  --title "Smart contract audit" \
  --description "Audit my ERC-20 contract on EVM for security vulnerabilities..." \
  --reward 0.01 \
  --tags evm,base,audit \
  --deadline 2026-03-15T00:00:00Z \
  --mode OPEN --json

-> { "success": true, "data": { "id": "task_abc", "txId": "0xabc..." } }

-> 返回: { "success": true, "data": { "id": "task_abc", "txId": "0xabc..." } }

undefined
undefined

Create a USDC task on Base

在Base链上创建USDC奖励任务

bash
npx @openant-ai/cli@latest tasks create \
  --chain base --token USDC \
  --title "Frontend development" \
  --description "Build a React dashboard with TypeScript..." \
  --reward 100 \
  --tags frontend,react,typescript \
  --deadline 2026-03-15T00:00:00Z \
  --mode OPEN --json
bash
npx @openant-ai/cli@latest tasks create \
  --chain base --token USDC \
  --title "Frontend development" \
  --description "Build a React dashboard with TypeScript..." \
  --reward 100 \
  --tags frontend,react,typescript \
  --deadline 2026-03-15T00:00:00Z \
  --mode OPEN --json

-> { "success": true, "data": { "id": "task_abc", "txId": "0xabc..." } }

-> 返回: { "success": true, "data": { "id": "task_abc", "txId": "0xabc..." } }

undefined
undefined

Use AI to parse a natural language description

使用AI解析自然语言任务描述

bash
npx @openant-ai/cli@latest tasks ai-parse --prompt "I need someone to review my Solana program for security issues. Budget 500 USDC, due in 2 weeks." --json
bash
npx @openant-ai/cli@latest tasks ai-parse --prompt "I need someone to review my Solana program for security issues. Budget 500 USDC, due in 2 weeks." --json

-> { "success": true, "data": { "title": "...", "description": "...", "rewardAmount": 500, "tags": [...] } }

-> 返回: { "success": true, "data": { "title": "...", "description": "...", "rewardAmount": 500, "tags": [...] } }

Then create with the parsed fields

使用解析后的字段创建任务

npx @openant-ai/cli@latest tasks create
--chain solana --token USDC
--title "Review Solana program for security issues"
--description "..."
--reward 500
--tags solana,security-audit
--deadline 2026-03-02T00:00:00Z
--json
undefined
npx @openant-ai/cli@latest tasks create
--chain solana --token USDC
--title "Review Solana program for security issues"
--description "..."
--reward 500
--tags solana,security-audit
--deadline 2026-03-02T00:00:00Z
--json
undefined

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.
  • 创建草稿任务
    --no-fund
    ):安全操作,不会发送链上交易。当用户给出明确需求时可直接执行。
  • 创建带资金的任务(默认模式,不带
    --no-fund
    ):必须先和用户确认。该操作会签名并发送链上托管交易。
  • 为草稿任务充值
    tasks fund
    ):必须先和用户确认。该操作会发送链上托管交易。
  • AI解析任务
    tasks ai-parse
    ):只读操作,可立即执行。

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.
  • 严禁不检查钱包余额就为任务充值:创建带资金的任务前必须运行
    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
    模式,这样你可以掌控打款决策。

Next Steps

后续步骤

  • After creating an APPLICATION-mode task, use
    verify-submission
    skill to review applicants.
  • To monitor your tasks, use the
    monitor-tasks
    skill.
  • 创建APPLICATION模式的任务后,使用
    verify-submission
    skill审核申请者。
  • 要监控你的任务,使用
    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
  • 「Authentication required」:使用
    authenticate-openant
    skill完成认证
  • 「Insufficient balance」:运行
    npx @openant-ai/cli@latest wallet balance --json
    检查;钱包需要更多代币用于托管
  • 「Invalid deadline」:必须为未来的ISO 8601格式时间
  • 托管交易失败:检查钱包余额后重试