dAppBooster
    Preparing search index...

    Function isNativeToken

    • Checks if the given address matches the native token address.

      The function compares the lowercase version of the input address with the native token address defined in the environment configuration.

      Parameters

      • address: string

        The blockchain address to check

      Returns boolean

      Returns true if the address matches the native token address, false otherwise

      // Example using Ethereum's native token address
      const isNative = isNativeToken('0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE');
      console.log(isNative); // true or false depending on environment configuration