Ethereum icon

Ethereum

Interact with Ethereum blockchain

ERC20 → Transfer From

AI-generated

Summary

Transfer tokens from an approved spender to a recipient

Inputs

  • tokenAddress (required) — The contract address of the ERC20 token
  • to (required) — Recipient address to receive tokens
  • amount (required) — Amount in token units (e.g., "1.5" for 1.5 tokens) or wei
  • from (required) — Sender address authorized to transfer tokens

Output shape

a success confirmation with no body

Errors are propagated; no additional fields are returned.

Examples

Example 1: Transfer 100 tokens from a spender to a recipient

tokenAddress: 0xToken123..., from: 0xSpender456..., to: 0xRecipient789..., amount: "100"

Example 2: Move 0.5 tokens from a spender to a recipient

tokenAddress: 0xTokenABC..., from: 0xSpender..., to: 0xRecipient..., amount: "0.5"

Example 3: Transfer tokens using placeholder values

tokenAddress: "0x..."; to: "0x..."; amount: "1"; from: "0x..."

Links

Discussion