UNPKG

@magiceden/magiceden-sdk

Version:

A TypeScript SDK for interacting with Magic Eden's API across multiple chains.

13 lines (12 loc) 383 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isHexPrefixedString = isHexPrefixedString; /** * Type guard for checking if a string starts with the 0x prefix used in hex strings. * * @param str * @returns True if the string starts with 0x */ function isHexPrefixedString(str) { return typeof str === 'string' && str.startsWith('0x'); }