Skip to main content
Module

x/leaves/mod.ts>validator.isEthereumAddress

A Web framework For Deno with Decorator and middleware
Latest
function validator.isEthereumAddress
import { validator } from "https://deno.land/x/leaves@v0.1.5/mod.ts";
const { isEthereumAddress } = validator;

Check if the string is an Ethereum address using basic regex. Does not validate address checksums. If given value is not a string, then it returns false.

Parameters

value: unknown

Returns

boolean