send-usdc
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSending USDC
发送USDC
Use the command to transfer USDC from the wallet to any Ethereum address or ENS name on Base.
npx awal@latest send使用命令将钱包中的USDC转账至Base网络上的任意以太坊地址或ENS名称。
npx awal@latest sendConfirm wallet is initialized and authed
确认钱包已初始化并完成认证
bash
npx awal@latest statusIf the wallet is not authenticated, refer to the skill.
authenticate-walletbash
npx awal@latest status如果钱包未完成认证,请参考技能文档。
authenticate-walletCommand Syntax
命令语法
bash
npx awal@latest send <amount> <recipient> [--chain <chain>] [--json]bash
npx awal@latest send <amount> <recipient> [--chain <chain>] [--json]Arguments
参数说明
| Argument | Description |
|---|---|
| Amount to send: '$1.00', '1.00', or atomic units (1000000 = $1). Always single-quote amounts that use |
| Ethereum address (0x...) or ENS name (vitalik.eth) |
| 参数 | 描述 |
|---|---|
| 转账金额:格式支持'$1.00'、'1.00'或原子单位(1000000 = 1美元)。使用 |
| 以太坊地址(0x...格式)或ENS名称(如vitalik.eth) |
Options
选项说明
| Option | Description |
|---|---|
| Blockchain network (default: base) |
| Output result as JSON |
| 选项 | 描述 |
|---|---|
| 区块链网络(默认值:base) |
| 以JSON格式输出结果 |
Examples
示例
bash
undefinedbash
undefinedSend $1.00 USDC to an address
向某地址发送1.00美元USDC
npx awal@latest send 1 0x1234...abcd
npx awal@latest send 1 0x1234...abcd
Send $0.50 USDC to an ENS name
向某ENS名称发送0.50美元USDC
npx awal@latest send 0.50 vitalik.eth
npx awal@latest send 0.50 vitalik.eth
Send with dollar sign prefix (note the single quotes)
带美元符号的金额转账(注意单引号)
npx awal@latest send '$5.00' 0x1234...abcd
npx awal@latest send '$5.00' 0x1234...abcd
Get JSON output
以JSON格式输出结果
npx awal@latest send 1 vitalik.eth --json
undefinednpx awal@latest send 1 vitalik.eth --json
undefinedENS Resolution
ENS名称解析
ENS names are automatically resolved to addresses via Ethereum mainnet. The command will:
- Detect ENS names (any string containing a dot that isn't a hex address)
- Resolve the name to an address
- Display both the ENS name and resolved address in the output
ENS名称会通过以太坊主网自动解析为对应地址。该命令的处理流程如下:
- 识别ENS名称(任何包含小数点且不是十六进制地址的字符串)
- 将名称解析为对应地址
- 在输出中同时显示ENS名称和解析后的地址
Prerequisites
前置条件
- Must be authenticated (to check,
npx awal@latest awal statusto sign in, see skillnpx awal@latest awal auth loginfor more information)authenticate-wallet - Wallet must have sufficient USDC balance (to check)
npx awal balance
- 必须完成钱包认证(使用检查状态,使用
npx awal@latest status登录,更多信息请查看npx awal@latest auth login技能文档)authenticate-wallet - 钱包中必须有足够的USDC余额(使用查询余额)
npx awal balance
Error Handling
错误处理
Common errors:
- "Not authenticated" - Run first
awal auth login <email> - "Insufficient balance" - Check balance with
awal balance - "Could not resolve ENS name" - Verify the ENS name exists
- "Invalid recipient" - Must be valid 0x address or ENS name
常见错误:
- "Not authenticated" - 先运行完成认证
awal auth login <email> - "Insufficient balance" - 使用查询余额
awal balance - "Could not resolve ENS name" - 确认该ENS名称是否存在
- "Invalid recipient" - 接收方必须是有效的0x格式地址或ENS名称