evm_addmod
Implements EVM ADDMOD: computes (a + b) mod n using the full mathematical sum, without UINT256 wraparound, and returns zero when n is zero. NULL input propagates to NULL.
Example
Local
{"id":"sample_6r6mf6","title":"Sample","code":"SELECT evm_addmod(7::UINT256, 5::UINT256, 10::UINT256)::VARCHAR AS result;\n-- => [{\"result\":\"2\"}]"}
Notebook ready in readonly mode.
API reference
Exact signatures with descriptions, requirements, inputs, returns, and examples.
evm_addmod(UINT256, UINT256, UINT256) #
EVM ADDMOD over three UINT256 words using a 512-bit sum.
Category and tags
- Category
- EVM utilities
- Tag
- Types
- Tag
- EVM