360 Secure SkillHub
360 安全技能中心

Send Tokens

核心功能:支持在以太坊、Polygon、Solana等多链上发送原生或ERC-20代币,流程涵盖钱包认证检查、余额校验、执行转账及结果反馈,可配置备注、多账号等可选参数。典型场景:付款、转账至自有其他钱包、捐赠、打赏等。输入需指定目标链、接收地址、金额,可补充源地址、代币合约地址等;输出为交易执行结果,同时处理未认证、余额不足等异常。

rachidjarray-hk-qa-fdt
rachidjarray-hk-qa-fdt
热度 53.50
最近更新 2026-05-11 17:29:44
分类:自动化依赖:代码执行 / 第三方 API应用场景:财务

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add send-tokens
Metadata
name
send-tokens
description
Send or transfer tokens to any address on any supported chain (EVM or Solana). Use when you or the user want to send money, pay someone, transfer tokens, tip, donate, or move funds to another wallet address. Covers phrases like "send 10 USDC to", "pay 0x...", "transfer ETH to", "move tokens to my other wallet".
user-invocable
true
disable-model-invocation
false
allowed-tools
["Bash(fdx status*)","Bash(fdx call transferTokens*)","Bash(fdx call getWalletOverview*)"]

Sending Tokens

Use the fdx call transferTokens command to transfer tokens from the wallet to any address on any supported EVM chain or Solana.

Confirm wallet is authenticated

fdx status

If the wallet is not authenticated, refer to the authenticate skill.

Check Balance Before Sending

Always verify the wallet has sufficient balance before initiating a transfer:

fdx call getWalletOverview --chainKey <chain>

Sending Tokens

fdx call transferTokens \
  --chainKey <chain> \
  --recipientAddress <address> \
  --amount <amount>

Parameters

Parameter Required Description
--chainKey Yes Target blockchain (e.g. ethereum, polygon, base, solana)
--recipientAddress Yes Destination wallet address
--amount Yes Amount to send (human-readable, e.g. 10, 0.5)
--fromAccountAddress No Source account address (if wallet has multiple accounts)
--tokenAddress No Token contract address (omit for native token like ETH or SOL)
--memo No Optional memo or note for the transaction
--maxPriorityFeePerGas No EVM gas tip override
--maxFeePerGas No EVM max gas fee override

Examples

Send native tokens

# Send 0.1 ETH on Ethereum
fdx call transferTokens \
  --chainKey ethereum \
  --recipientAddress 0x1234...abcd \
  --amount 0.1

# Send 1 SOL on Solana
fdx call transferTokens \
  --chainKey solana \
  --recipientAddress AbCd...1234 \
  --amount 1

Send ERC-20 tokens

# Send 100 USDC on Ethereum (specify token contract)
fdx call transferTokens \
  --chainKey ethereum \
  --recipientAddress 0x1234...abcd \
  --amount 100 \
  --tokenAddress 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48

# Send 50 USDC on Base
fdx call transferTokens \
  --chainKey base \
  --recipientAddress 0x1234...abcd \
  --amount 50 \
  --tokenAddress 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913

Send with memo

fdx call transferTokens \
  --chainKey ethereum \
  --recipientAddress 0x1234...abcd \
  --amount 10 \
  --tokenAddress 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 \
  --memo "Payment for invoice #42"

Flow

  1. Check authentication with fdx status
  2. Check balance with fdx call getWalletOverview --chainKey <chain>
  3. Confirm the transfer details with the human (amount, recipient, chain, token)
  4. Execute with fdx call transferTokens
  5. Report the transaction result to the human

Important: Always confirm the recipient address and amount with your human before executing, especially for large amounts. Blockchain transactions are irreversible.

Prerequisites

  • Must be authenticated (fdx status to check, see authenticate skill)
  • Wallet must have sufficient balance on the target chain
  • If sending insufficient funds, suggest using the fund-wallet skill

Error Handling

  • "Not authenticated" — Run fdx setup first, or see authenticate skill
  • "Insufficient balance" — Check balance with getWalletOverview; see fund-wallet skill
  • "Invalid recipient" — Verify the address format matches the target chain