@id
Compute the keccak256 hash of a string (first 4 bytes for selectors).
Returns: bytes32
Syntax
Section titled “Syntax”@id(text)Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
text |
string |
String to hash (e.g. a function signature) |
Examples
Section titled “Examples”# Compute a function selectorset $sel @id("transfer(address,uint256)")See Also
Section titled “See Also”- @namehash — ENS namehash
- @abi.encodeCall — encode a full function call