Docs

shortenHex

Shortens a hexadecimal string without performing any validation or checksumming.

Example

import { shortenHex } from "thirdweb/utils";
shortenHex("0xa0cf798816d4b9b9866b5330eea46a18382f251e");
//=> '0xa0cf...251e'

Parameters

Returns

The shortened hexadecimal string.