Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno_class_validator/src/index.ts>IsEthereumAddress

Decorator-based property validation for classes.
Latest
function IsEthereumAddress
import { IsEthereumAddress } from "https://deno.land/x/deno_class_validator@v1.0.0/src/index.ts";

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

optional
validationOptions: ValidationOptions

Returns

PropertyDecorator