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 Format

The EVM format module contains display helpers for EVM hashes and addresses.

shortenHash

import { shortenHash } from 'sushi/evm'
 
shortenHash('0x1234567890abcdef1234567890abcdef12345678')
shortenHash('0x1234567890abcdef1234567890abcdef12345678', 6)

Formatting is display-only. Use validation/normalization helpers for address correctness.