ValidationOptions class

Configuration options for wallet address validation.

Controls various aspects of the validation process including:

  • Network filtering
  • Testnet address validation
  • Legacy address support
  • Emoji support in addresses
  • Name service domain validation

Constructors

ValidationOptions({List<String>? network, bool testnet = false, bool enabledLegacy = true, bool emojiAllowed = true, List<String> nsDomains = const []})
Creates a new ValidationOptions instance.
const

Properties

emojiAllowed → bool
Whether to allow emoji characters in addresses. Defaults to true.
final
enabledLegacy → bool
Whether to allow legacy address formats. Defaults to true.
final
hashCode → int
The hash code for this object.
no setterinherited
network → List<String>?
List of specific networks to validate against. If null, all networks are considered.
final
nsDomains → List<String>
List of supported name service domains for resolution. Defaults to an empty list.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
testnet → bool
Whether to allow testnet addresses. Defaults to false.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited