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
// Example using Ethereum's native token address constisNative = isNativeToken('0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE'); console.log(isNative); // true or false depending on environment configuration
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.