The developer tools you reach for every day, all in one place.
Converters, formatters, hashes, validators, and the small utilities you keep reopening stay together instead of getting lost across tabs.
/ Tools
■Smart Contract Method ID Finder
Look up smart contract method signatures by their 4-byte method ID
What is a Method ID?
A method ID (or function selector) is the first 4 bytes of the Keccak-256 hash of a function signature. It's used to identify which function to call in a smart contract transaction.
How does it work?
4byte.directory 4byte.directory is a community-maintained database of Ethereum function signatures. When you see an unknown method ID in a transaction, you can look it up here to find the human-readable function signatu…
Sample Cases
Covers ERC-20 transfer, ERC-20 approve, and ERC-20 transferFrom so you can compare common inputs and outputs quickly.
/ Code
■Source code from the selected tool, shown here alongside the live version on the right.
// npm install viem
import { keccak256, toBytes } from 'viem';
// Get method ID (4-byte selector) from function signature
function getMethodId(signature: string): string {
const hash = keccak256(toBytes(signature));
return hash.slice(0, 10); // First 4 bytes (8 hex chars + "0x")
}