evm_shl
Implements EVM SHL: shifts a UINT256 word left, discards bits above bit 255, and returns zero for counts at least 256. Negative SQL BIGINT counts throw Invalid Input Error: Shift amount must be non-negative. NULL input propagates to NULL.
Example
Local
{"id":"sample_t09gas","title":"Sample","code":"SELECT evm_shl(8::BIGINT, 1::UINT256)::VARCHAR AS result;\n-- => [{\"result\":\"256\"}]"}
Notebook ready in readonly mode.
API reference
Exact signatures with descriptions, requirements, inputs, returns, and examples.
evm_shl(BIGINT, UINT256) #
Logical left shift with EVM 256-bit word truncation.
Category and tags
- Category
- EVM utilities
- Tag
- Types
- Tag
- EVM