Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

Reference: sushi/evm Utils

The EVM utilities module exposes low-level helpers for address normalization, create2 computation, and transaction gas margins.

ExportPurpose
normalizeEvmAddressNormalize an EVM address.
getCreate2AddressCompute a create2 contract address.
addGasMarginAdd a safety margin to a gas value.
import { addGasMargin, normalizeEvmAddress } from 'sushi/evm'
 
const address = normalizeEvmAddress('0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48')
const gas = addGasMargin(100_000n)

These are low-level helpers. Prefer higher-level SDK APIs unless you are building routing, pool, or contract integrations.