send

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Send Transaction

发送交易

Use this skill to transfer assets. It handles both native ETH and ERC-20 tokens.
使用此技能转移资产,支持原生ETH和ERC-20代币。

Hard Rules (CRITICAL)

硬性规则(至关重要)

  1. Pre-Flight Check: Before ANY send operation, you MUST run:
    • npx fibx status
      (to ensure connectivity)
    • npx fibx balance
      (to ensure sufficient funds)
  2. Recipient Confirmation: If the user provides a recipient address that has NOT been mentioned in the current conversation history, you MUST ask for explicit confirmation before sending.
    • Agent: "I am about to send 10 USDC to 0x123...456. Is this correct?"
  3. Chain Specification:
    • If the user mentions a specific chain (e.g., "on Monad", "for my Citrea wallet"), you MUST include the
      --chain <name>
      parameter.
    • If the user DOES NOT mention a chain, you MUST either:
      • Explicitly state the default: "I will use Base for this transaction. Is that correct?"
      • OR ask for clarification: "Which chain would you like to use? Base, Citrea, HyperEVM, or Monad?"
  4. Post-Flight Verification: After the CLI returns a transaction hash, you MUST use the
    tx-status
    skill to verify it was included in a block and provide the explorer link to the user.
  1. 事前检查:在执行任何发送操作前,你必须运行:
    • npx fibx status
      (确保连接正常)
    • npx fibx balance
      (确保资金充足)
  2. 接收方确认:如果用户提供的接收地址未在当前对话历史中提及过,你必须在发送前请求明确确认。
    • Agent:"我即将向0x123...456发送10 USDC,是否正确?"
  3. 链规格说明
    • 如果用户指定了特定链(例如:"在Monad上"、"给我的Citrea钱包"),你必须包含
      --chain <name>
      参数。
    • 如果用户未提及链,你必须
      • 明确说明默认选项:"我将使用Base网络进行此交易,是否正确?"
      • 或者请求澄清:"你想使用哪个网络?Base、Citrea、HyperEVM还是Monad?"
  4. 事后验证:在CLI返回交易哈希后,你必须使用
    tx-status
    技能验证交易已被打包进区块,并向用户提供浏览器链接。

Usage

使用方法

bash
npx fibx send <amount> <recipient> [token] [--chain <chain>] [--json]
bash
npx fibx send <amount> <recipient> [token] [--chain <chain>] [--json]

Arguments

参数

ArgumentDescription
amount
Amount to send. Use simple numbers (e.g.,
0.1
,
10
). Avoid
$
symbols in the command itself.
recipient
The destination Ethereum address (
0x...
).
token
Optional. Token symbol (
ETH
,
USDC
,
WETH
). Defaults to
ETH
.
参数说明
amount
发送金额,使用简单数字(例如:
0.1
10
),命令中请勿使用
$
符号。
recipient
目标以太坊地址(
0x...
格式)。
token
可选参数,代币符号(
ETH
USDC
WETH
),默认值为
ETH

Options

选项

OptionDescription
--chain <network>
Network to use:
base
,
citrea
,
hyperevm
,
monad
. Default:
base
.
--json
Output result as JSON.
选项说明
--chain <network>
使用的网络:
base
citrea
hyperevm
monad
,默认值为
base
--json
以JSON格式输出结果。

Examples

示例

Scenario: Sending USDC

场景:发送USDC

User: "Send 10 USDC to 0x123...abc"
Agent Actions:
  1. npx fibx status
    (Check auth)
  2. npx fibx balance
    (Check funds)
  3. (If address is new) "Please confirm: Send 10 USDC to 0x123...abc?"
  4. User confirms.
  5. npx fibx send 10 0x123...abc USDC
  6. npx fibx tx-status <hash_from_output>
用户: "向0x123...abc发送10 USDC"
Agent操作:
  1. npx fibx status
    (检查授权)
  2. npx fibx balance
    (检查资金)
  3. (如果地址是新地址)"请确认:向0x123...abc发送10 USDC?"
  4. 用户确认。
  5. npx fibx send 10 0x123...abc USDC
  6. npx fibx tx-status <hash_from_output>

Scenario: Sending ETH on Monad

场景:在Monad网络发送ETH

User: "Send 0.05 MON to 0xdef...456 on Monad"
Agent Actions:
  1. npx fibx status --chain monad
  2. npx fibx balance --chain monad
  3. npx fibx send 0.05 0xdef...456 ETH --chain monad
    (Native token is treated as 'ETH' generic or 'MON')
  4. npx fibx tx-status <hash> --chain monad
用户: "在Monad上向0xdef...456发送0.05 MON"
Agent操作:
  1. npx fibx status --chain monad
  2. npx fibx balance --chain monad
  3. npx fibx send 0.05 0xdef...456 ETH --chain monad
    (原生代币被视为通用'ETH'或'MON')
  4. npx fibx tx-status <hash> --chain monad

Error Handling

错误处理

  • "Insufficient funds": Inform the user of their current balance.
  • "Invalid address": Ask the user to check the recipient address.
  • "资金不足":告知用户当前余额。
  • "无效地址":请用户检查接收方地址。