{"uid":"cap_tqIfq9L1GBbCSCO7uWaSO","slug":"evm-erc-20-transferfrom-calldata-builder-814f98af","name":"EVM ERC-20 transferFrom Calldata Builder","description":"Build delegated ERC-20 transferFrom calldata","url":"https://evm-canon-base.onrender.com/encode/transfer-from","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["args"],"properties":{"args":{"type":"object","description":"arguments keyed by parameter name"},"chain":{"description":"chain name, alias or numeric chainId"},"token":{"type":"string","description":"symbol or contract address"},"value":{"type":"string","description":"native value in wei"},"function":{"type":"string","description":"name or full signature (generic route only)"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_9Q3An97lC8PKwageEaTKM","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Encodes delegated ERC-20 transferFrom calldata for on-chain execution, spending a previously granted allowance to move tokens from one address to another.","exampleAgentPrompt":"Build the transferFrom calldata to pull 500 USDC (0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48) from 0xOwnerAddress to 0xRecipientAddress — the spender is 0xSpenderAddress.","exampleUseCases":[{"title":"DeFi protocol spending user allowance","prompt":"Encode a transferFrom call to move 1000 USDT from 0xUser123 to my vault contract at 0xVaultABC, using the approved spender 0xProtocolXYZ — give me the raw calldata hex."},{"title":"Automated payroll from pre-approved wallet","prompt":"I need the transferFrom calldata to pull 250 DAI from 0xEmployerWallet to 0xEmployeeWallet — the payroll contract at 0xPayrollContract has the allowance."},{"title":"Agent-executed token sweep","prompt":"Generate transferFrom calldata to sweep 750 WETH from 0xSourceWallet to 0xTreasuryWallet using the spender approval already granted to 0xSweeperBot."}],"resultDescription":"A hex-encoded ABI calldata string representing the transferFrom(address from, address to, uint256 amount) function call, ready to be submitted as the 'data' field of an EVM transaction to the relevant ERC-20 token contract.","failureModes":["Invalid or non-checksum Ethereum address returns a 400 error","Amount not parseable as a uint256 returns encoding error","Missing required fields (from, to, amount, token) returns validation error","Network or service unavailability returns 5xx","Payment not provided or insufficient returns 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you need to programmatically build ERC-20 transferFrom calldata without running a local ABI encoder or Web3 library. It is especially useful for agents operating in environments without EVM tooling, or when constructing transactions for delegated token transfers where a spender allowance has already been approved via approve() or permit().","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:31:45.180Z","isFirstParty":false}