Loading

evm_addmod

Scalar function

EVM ADDMOD opcode: (a + b) % n without overflow. Returns 0 if n == 0 (EVM behavior). Uses 512-bit intermediate.

evm_addmod(UINT256, UINT256, UINT256)

Parameters

Returns

Name Type
result UINT256
1
SELECT evm_addmod(a, b, modulus) AS sum_mod;
Notebook ready in readonly mode.