evm_min

Returns the minimum of two UINT256 values.

Scalar function TypesEVM

Example

Runs locally

SELECT evm_min(9::UINT256, 4::UINT256)::VARCHAR AS result;
-- => [{"result":"4"}]

API reference

evm_min(UINT256, UINT256) #

Returns the smaller of two UINT256 values.

Inputs

Name Type Use
a UINT256

First UINT256 value.

required positional
b UINT256

Second UINT256 value.

required positional

Returns

Name Type
min UINT256

Smaller value. The smaller UINT256 input; NULL when either input is NULL.