Function Selector

Identifier

A function selector is a four-byte identifier derived from the Keccak-256 hash of a function’s canonical signature, including its name and parameter types. This concise hash is prepended to the encoded arguments in a transaction’s data field, serving as the primary mechanism for the Ethereum Virtual Machine (EVM) to determine which function to execute. It acts as a unique fingerprint for each distinct function within a smart contract. Accurate identification is critical for secure function calls.