send
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSend Transaction
发送交易
Use this skill to transfer assets. It handles both native ETH and ERC-20 tokens.
使用此技能转移资产,支持原生ETH和ERC-20代币。
Hard Rules (CRITICAL)
硬性规则(至关重要)
- Pre-Flight Check: Before ANY send operation, you MUST run:
- (to ensure connectivity)
npx fibx status - (to ensure sufficient funds)
npx fibx balance
- 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?"
- Chain Specification:
- If the user mentions a specific chain (e.g., "on Monad", "for my Citrea wallet"), you MUST include the parameter.
--chain <name> - 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?"
- If the user mentions a specific chain (e.g., "on Monad", "for my Citrea wallet"), you MUST include the
- Post-Flight Verification: After the CLI returns a transaction hash, you MUST use the skill to verify it was included in a block and provide the explorer link to the user.
tx-status
- 事前检查:在执行任何发送操作前,你必须运行:
- (确保连接正常)
npx fibx status - (确保资金充足)
npx fibx balance
- 接收方确认:如果用户提供的接收地址未在当前对话历史中提及过,你必须在发送前请求明确确认。
- Agent:"我即将向0x123...456发送10 USDC,是否正确?"
- 链规格说明:
- 如果用户指定了特定链(例如:"在Monad上"、"给我的Citrea钱包"),你必须包含参数。
--chain <name> - 如果用户未提及链,你必须:
- 明确说明默认选项:"我将使用Base网络进行此交易,是否正确?"
- 或者请求澄清:"你想使用哪个网络?Base、Citrea、HyperEVM还是Monad?"
- 如果用户指定了特定链(例如:"在Monad上"、"给我的Citrea钱包"),你必须包含
- 事后验证:在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
参数
| Argument | Description |
|---|---|
| Amount to send. Use simple numbers (e.g., |
| The destination Ethereum address ( |
| Optional. Token symbol ( |
| 参数 | 说明 |
|---|---|
| 发送金额,使用简单数字(例如: |
| 目标以太坊地址( |
| 可选参数,代币符号( |
Options
选项
| Option | Description |
|---|---|
| Network to use: |
| Output result as JSON. |
| 选项 | 说明 |
|---|---|
| 使用的网络: |
| 以JSON格式输出结果。 |
Examples
示例
Scenario: Sending USDC
场景:发送USDC
User: "Send 10 USDC to 0x123...abc"
Agent Actions:
- (Check auth)
npx fibx status - (Check funds)
npx fibx balance - (If address is new) "Please confirm: Send 10 USDC to 0x123...abc?"
- User confirms.
npx fibx send 10 0x123...abc USDCnpx fibx tx-status <hash_from_output>
用户: "向0x123...abc发送10 USDC"
Agent操作:
- (检查授权)
npx fibx status - (检查资金)
npx fibx balance - (如果地址是新地址)"请确认:向0x123...abc发送10 USDC?"
- 用户确认。
npx fibx send 10 0x123...abc USDCnpx 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:
npx fibx status --chain monadnpx fibx balance --chain monad- (Native token is treated as 'ETH' generic or 'MON')
npx fibx send 0.05 0xdef...456 ETH --chain monad npx fibx tx-status <hash> --chain monad
用户: "在Monad上向0xdef...456发送0.05 MON"
Agent操作:
npx fibx status --chain monadnpx fibx balance --chain monad- (原生代币被视为通用'ETH'或'MON')
npx fibx send 0.05 0xdef...456 ETH --chain monad 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.
- "资金不足":告知用户当前余额。
- "无效地址":请用户检查接收方地址。