Loading

evm_byte

Scalar function

EVM BYTE opcode: Extract the nth byte from a 256-bit value. Byte 0 is the most significant byte, byte 31 is the least significant. Returns 0 if n >= 32.

evm_byte(BIGINT, UINT256)

Parameters

Name Type
n BIGINT
x UINT256

Returns

Name Type
byte_value UINT256
1
SELECT evm_byte(31, amount) AS lsb;
Notebook ready in readonly mode.