Reference: sushi/evm
sushi/evm is the EVM-specific package entrypoint.
import { getQuote, EvmToken, SushiSwapV2Pool } from "sushi/evm";Modules
| Module | Docs | Purpose |
|---|---|---|
api | API | Hosted Sushi price, quote, and swap helpers. |
chain | Chain | EVM chain registry and chain ID helpers. |
currency | Currency | EVM tokens, native assets, schemas, and address helpers. |
config | Config | Feature support, known tokens, wrapped native assets, subgraphs, addresses. |
dex | DEX | DEX enums and local math errors. |
pool | Pool | Local V2/V3 pool and position math. |
abi | ABI | Contract ABI exports for viem usage. |
token-list | Token List | Token-list types and URL constants. |
format | Format | EVM display helpers. |
utils | Utils | Low-level EVM helpers. |
validate | Validate | EVM validation helpers. |
types | Types | EVM domain and API types. |
API helpers call Sushiโs hosted API. Pool classes and utilities compute locally from data you provide.