What Is a Function Selector in Ethereum? How Smart…
By Tobi Opeyemi Amure

Source excerpt · FinanceFeeds
When you swap tokens on a decentralized exchange, send tokens through a smart contract, or deposit funds into a DeFi protocol, Ethereum needs to know what you want the contract to do. The transaction's destination address tells the network which contract to contact, but it does not explain which operation you want to perform. This is where a function selector in Ethereum comes in. It is a short id…