Shortens a hexadecimal string without performing any validation or checksumming.
import { shortenHex } from "thirdweb/utils"; shortenHex("0xa0cf798816d4b9b9866b5330eea46a18382f251e");//=> '0xa0cf...251e'
function shortenHex(hex: string, length: number): string;
The hexadecimal string to shorten.
let hex: string;
The number of characters to keep from the start and end of the string.
let length: number;
let returnType: string;
The shortened hexadecimal string.