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