Skip to main content

What Is the Difference between Transfer and Transferfrom ?

The transfer function sends tokens directly from the caller's address to a recipient. It requires the caller to own the tokens.

The transferFrom function, however, allows a third-party address (like a DEX contract) to send tokens from a different address (the token owner) to a recipient. This requires the token owner to have first granted an allowance to the third party using the approve function.

What Is the Relative Gas Cost of a ‘Delegatecall’ Compared to a Regular ‘Call’?
What Is Atomic Settlement and Why Is It Desirable for Crypto Derivatives?
What Is the Difference between a Private Mempool and an Encrypted Mempool?
Why Does a Transparent Proxy Need to Check the Caller’s Address?