UINT256
256-bit unsigned EVM integer stored as a 32-byte big-endian ABI word. Decimal string casts parse exact numeric values; 0x-prefixed strings parse raw bytes. VARCHAR output is decimal for display; use format_units/format_ether for token amounts and BYTES/BYTES32 casts for raw ABI/storage boundaries.
Used by functions
Derived from generated function parameters and return types.
Input and output
- clmm_amount0_delta_x96
Computes the Uniswap v4 SqrtPriceMath currency0 delta between two Q64.96 boundaries. Determica requires non-zero uint128 liquidity; arithmetic is deterministic and NULL propagates.
scalar function Offline 1 overload - clmm_amount1_delta_x96
Computes the Uniswap v4 SqrtPriceMath currency1 delta between two Q64.96 boundaries. Determica requires non-zero uint128 liquidity; arithmetic is deterministic and NULL propagates.
scalar function Offline 1 overload - clmm_next_sqrt_price_from_input_x96
Computes the Uniswap v4 SqrtPriceMath next Q64.96 price for exact input. It is deterministic and propagates NULL.
scalar function Offline 1 overload - clmm_next_sqrt_price_from_output_x96
Computes the Uniswap v4 SqrtPriceMath next Q64.96 price for exact output. It is deterministic and propagates NULL.
scalar function Offline 1 overload - divmul
Computes floor(x * d / y), not an algebraic inverse of muldiv, with the product formed in 512 bits. Errors when y is zero or when the quotient does not fit UINT256. NULL input propagates to NULL.
scalar function Offline 2 overloads - 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.
scalar function Offline 1 overload - evm_byte
Implements the EVM BYTE opcode over a UINT256 word. BYTE index 0 selects the most significant byte and index 31 selects the least significant byte. Negative indices and indices above 31 return zero. NULL input propagates to NULL.
scalar function Offline 1 overload - evm_ceil_div
Ceiling division: (x + y - 1) / y. Rounds up to ensure no remainder. If y is 0, the function errors with: Division by zero in evm_ceil_div.
scalar function Offline 1 overload - evm_clamp
Constrains x to the inclusive range [lo, hi] when lo <= hi. For compatibility, reversed bounds lo > hi return lo; reversed bounds do not describe a valid interval. NULL input propagates to NULL.
scalar function Offline 1 overload - evm_max
Returns the maximum of two UINT256 values.
scalar function Offline 1 overload - evm_min
Returns the minimum of two UINT256 values.
scalar function Offline 1 overload - evm_modexp
Computes base^exp mod modulus over three fixed-width UINT256 values. Returns 0 when modulus is 0 or 1; for other moduli, exponent 0 returns 1. This is not the EVM MODEXP precompile byte interface: it does not accept length-prefixed byte sequences, produce variable-width output, or model gas. NULL input propagates to NULL.
scalar function Offline 1 overload - 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.
scalar function Offline 1 overload - evm_shl
Implements EVM SHL: shifts a UINT256 word left, discards bits above bit 255, and returns zero for counts at least 256. Negative SQL BIGINT counts throw Invalid Input Error: Shift amount must be non-negative. NULL input propagates to NULL.
scalar function Offline 1 overload - evm_shr
Implements EVM SHR: logically shifts a UINT256 word right, fills high bits with zero, and returns zero for counts at least 256. Negative SQL BIGINT counts throw Invalid Input Error: Shift amount must be non-negative. NULL input propagates to NULL.
scalar function Offline 1 overload - evm_signextend
Implements EVM SIGNEXTEND. Byte k is indexed from the least significant byte; bit 8*k+7 is copied through all higher bits. SQL BIGINT k values below 0 or at least 31 return the unchanged UINT256 word. NULL input propagates to NULL.
scalar function Offline 1 overload - evm_sqrt
Returns the floor integer square root of a UINT256 value using overflow-safe Newton iteration. Defined for the full UINT256 range. NULL input propagates to NULL.
scalar function Offline 1 overload - fixed_div
Computes fixed-point division as x * scale / y with a full 512-bit intermediate product. The caller owns the units and scale: this function does not require decimal, WAD, or Q-format inputs. It is pure and deterministic despite remaining registered VOLATILE for compatibility. NULL input propagates to NULL. A zero y or a rounded quotient above UINT256 raises an error.
scalar function Offline 2 overloads - fixed_mul
Computes fixed-point multiplication as x * y / scale with a full 512-bit intermediate product. The caller owns the units and scale: this function does not require decimal, WAD, or Q-format inputs. It is pure and deterministic despite remaining registered VOLATILE for compatibility. NULL input propagates to NULL. A zero scale or a rounded quotient above UINT256 raises an error.
scalar function Offline 2 overloads - muldiv
Computes floor(x * y / z) with the product formed in 512 bits. Errors when z is zero or when the quotient does not fit UINT256. NULL input propagates to NULL.
scalar function Offline 2 overloads - parse_ether
Shorthand for parse_units(value, 18). Converts ETH/WETH amounts to wei. Prefer VARCHAR inputs for capital-moving amounts. Negative values and excess fractional precision are rejected; overflow currently follows parse_units compatibility behavior and wraps modulo 2^256.
scalar function Offline 14 overloads - parse_gwei
Shorthand for parse_units(value, 9). Converts gwei to wei. Prefer VARCHAR inputs for capital-moving amounts. Negative values and excess fractional precision are rejected; overflow currently follows parse_units compatibility behavior and wraps modulo 2^256.
scalar function Offline 14 overloads - parse_units
Converts human-readable token amounts to UINT256 raw values by multiplying by 10^decimals. Prefer VARCHAR inputs for capital-moving amounts. Negative values are rejected, fractional digits beyond decimals are rejected, and decimals must be between 0 and 77. String inputs trim surrounding whitespace, allow an optional leading plus sign, right-pad fractional digits with zeros, accept trailing fractional zeros, and reject scientific notation. Values that exceed UINT256 currently wrap modulo 2^256; treat that as compatibility behavior and validate untrusted amounts before parsing.
scalar function Offline 56 overloads - try_add
Adds two UINT256 values. Arithmetic overflow produces NULL; independently, ordinary scalar NULL propagation produces NULL when either input is NULL.
scalar function Offline 1 overload - try_mul
Multiplies two UINT256 values using a 512-bit intermediate. Arithmetic overflow produces NULL; independently, ordinary scalar NULL propagation produces NULL when either input is NULL.
scalar function Offline 1 overload - try_sub
Subtracts two UINT256 values. Arithmetic underflow produces NULL; independently, ordinary scalar NULL propagation produces NULL when either input is NULL.
scalar function Offline 1 overload
Accepted as input
- assume_native_balance
Declares an exact native-token balance used to evaluate a PROGRAM offline.
scalar function Offline 1 overload - call_context
Builds the optional EVM-visible context attached to one PROGRAM call step.
scalar function Offline 1 overload - clmm_bitmap_next_initialized_tick
Scans exactly one Uniswap v4-style compressed tick bitmap word. Compression rounds negative non-multiples toward negative infinity. It is deterministic, propagates NULL, and does not fetch adjacent words.
scalar function Offline 1 overload - clmm_sqrt_price_x96_to_tick
Inverts a Q64.96 sqrt(currency1/currency0) using Uniswap v4 TickMath floor semantics. It is deterministic and propagates NULL.
scalar function Offline 1 overload - clmm_swap_step_x96
Computes one Uniswap v4 SwapMath-compatible price-range step. Negative amount_remaining means exact input; non-negative means exact output. Direction is inferred from current versus target. Hooks, dynamic fee resolution, tick-crossing liquidity changes, multi-word iteration, slippage, routing, and calldata are outside this deterministic helper. The five-argument overload uses Uniswap v4's 1,000,000 fee denominator.
scalar function Offline 2 overloads - create_access_list
Builds an EIP-2930 access list for a transaction request. Each result row identifies an accessed account or storage slot and includes request status.
table function Live RPC RPC 1 overload - evm_abi_word
Encodes a supported scalar as exactly one 32-byte Solidity ABI word. Addresses and unsigned integers are left-padded; signed integers are sign-extended.
scalar function Offline 1 overload - evm_bit_count
Counts set bits in the complete 256-bit unsigned EVM word. Returns 0 for zero and 256 for UINT256_MAX. NULL input propagates to NULL.
scalar function Offline 1 overload - evm_clz
Counts zero bits from bit 255, the most significant bit, toward bit 0 in a 256-bit unsigned EVM word. Returns 256 for zero. NULL input propagates to NULL.
scalar function Offline 1 overload - evm_ctz
Counts zero bits from bit 0, the least significant bit, toward bit 255 in a 256-bit unsigned EVM word. Returns 256 for zero. NULL input propagates to NULL.
scalar function Offline 1 overload - evm_iszero
Implements the EVM ISZERO opcode: returns BIGINT 1 when the complete UINT256 word is zero and 0 otherwise. NULL input propagates to NULL.
scalar function Offline 1 overload - evm_pack_uint_be
Packs a UINT256 value into an exact-width big-endian BYTES value for ABI-adjacent byte construction.
scalar function Offline 1 overload - execute_call
Builds one raw EVM call step for sequential, non-atomic PROGRAM execution.
scalar function Offline 2 overloads - execute_contract
Builds one ABI-encoded contract call step for sequential, non-atomic PROGRAM execution.
scalar function Offline 2 overloads - format_ether
Human-readable helper for wei balances. Equivalent to format_units(amount, 18). Returns VARCHAR without introducing floating point conversion.
scalar function Offline 1 overload - format_units
Scales raw EVM integer balances by 10^decimals and returns a VARCHAR string representation. No floating point conversion is introduced. The default decimal scale is 18. INT256 inputs preserve signed values, and trailing fractional zeros are trimmed from the formatted string.
scalar function Offline 4 overloads - keccak256
Computes the Keccak-256 hash used by the EVM, returning a BYTES32 digest. Non-0x VARCHAR input is hashed as UTF-8, 0x-prefixed VARCHAR input is decoded to bytes first, and multi-argument overloads hash the exact unframed concatenation in argument order.
scalar function Offline 3 overloads - length
Returns the number of bytes in a BLOB or BLOB-backed EVM value such as ADDRESS, BYTES32, UINT256, or INT256.
scalar function Offline 1 overload - raw_call
Executes an isolated EVM call and returns the raw response bytes. Without a CLIENT, it builds a reusable READ and does not execute the call.
scalar function Live RPC RPC 1 overload - sort_key
Converts INT256/INT512/UINT256/UINT512 to a sortable BLOB for use in ORDER BY. Necessary because Determica's default BLOB ordering doesn't handle signed integers correctly. Use sort_key only inside ORDER BY or comparison-key workflows; it is not a human-readable number conversion, hash, or portable serialization.
scalar function Offline 1 overload - to_timestamp
Converts UINT256 seconds since the Unix epoch to a timezone-naive TIMESTAMP. Interpret the result as UTC when the source value is an EVM block timestamp.
scalar function Offline 1 overload
Returned as output
- clmm_tick_to_sqrt_price_x96
Converts a Uniswap-compatible tick to Q64.96 sqrt(currency1/currency0) with TickMath's bit-decomposed constants and final upward rounding. It is deterministic and propagates NULL.
scalar function Offline 1 overload - get_block
Returns block metadata for a block number, tag, or hash. Set include_transactions to request expanded transaction objects in transactions_full; otherwise transactions contains hashes.
table function Live RPC RPC 5 overloads - get_gas_price
Returns the RPC provider's current legacy gas-price estimate as an exact UINT256 value in Wei.
scalar function Live RPC RPC 1 overload - get_transaction
Returns transaction fields and available receipt metadata for a transaction hash. The client must point to the chain where the transaction exists.
table function Live RPC RPC 2 overloads - native_balance
Returns an address's native-token balance as exact Wei in live, pinned, or retained execution state. Without a CLIENT, it builds a reusable READ and does not access state.
scalar function Live RPC RPC 2 overloads