@tevm/voltaire / primitives/Ens
primitives/Ens
Classes
DisallowedCharacterError
Defined in: src/primitives/Ens/errors.ts:74 Disallowed character error (prohibited ENS character)Throws
Extends
Constructors
Constructor
new DisallowedCharacterError(Defined in: src/primitives/Ens/errors.ts:75options):DisallowedCharacterError
Parameters
options
cause?
Error
code?
string
context?
Record<string, unknown>
docsPath?
string
value
string
Returns
DisallowedCharacterError
Overrides
InvalidFormatError.constructor
Properties
cause?
Defined in: src/primitives/errors/AbstractError.ts:56 Root cause of this error (for error chaining)optionalcause:Error
Inherited from
InvalidFormatError.cause
code
code: string
Defined in: src/primitives/errors/AbstractError.ts:39
Machine-readable error code for programmatic handling
Example
Inherited from
InvalidFormatError.code
context?
Defined in: src/primitives/errors/AbstractError.ts:45 Additional context metadata for debuggingoptionalcontext:Record<string,unknown>
Example
Inherited from
InvalidFormatError.context
docsPath?
Defined in: src/primitives/errors/AbstractError.ts:51 Path to documentation for this erroroptionaldocsPath:string
Example
Inherited from
InvalidFormatError.docsPath
expected
expected: string
Defined in: src/primitives/errors/ValidationError.ts:19
Inherited from
InvalidFormatError.expected
value
value: unknown
Defined in: src/primitives/errors/ValidationError.ts:18
Inherited from
InvalidFormatError.value
Methods
getErrorChain()
getErrorChain(): string
Defined in: src/primitives/errors/AbstractError.ts:94
Get full error chain as string for logging
Returns
string
Inherited from
InvalidFormatError.getErrorChain
toJSON()
toJSON():Defined in: src/primitives/errors/AbstractError.ts:110 Serialize error to JSON for logging/telemetryRecord<string,unknown>
Returns
Record<string, unknown>
Inherited from
InvalidFormatError.toJSON
EmptyLabelError
Defined in: src/primitives/Ens/errors.ts:96 Empty label error (zero-length label segment)Throws
Extends
Constructors
Constructor
new EmptyLabelError(Defined in: src/primitives/Ens/errors.ts:97options):EmptyLabelError
Parameters
options
cause?
Error
code?
string
context?
Record<string, unknown>
docsPath?
string
value
string
Returns
EmptyLabelError
Overrides
InvalidFormatError.constructor
Properties
cause?
Defined in: src/primitives/errors/AbstractError.ts:56 Root cause of this error (for error chaining)optionalcause:Error
Inherited from
InvalidFormatError.cause
code
code: string
Defined in: src/primitives/errors/AbstractError.ts:39
Machine-readable error code for programmatic handling
Example
Inherited from
InvalidFormatError.code
context?
Defined in: src/primitives/errors/AbstractError.ts:45 Additional context metadata for debuggingoptionalcontext:Record<string,unknown>
Example
Inherited from
InvalidFormatError.context
docsPath?
Defined in: src/primitives/errors/AbstractError.ts:51 Path to documentation for this erroroptionaldocsPath:string
Example
Inherited from
InvalidFormatError.docsPath
expected
expected: string
Defined in: src/primitives/errors/ValidationError.ts:19
Inherited from
InvalidFormatError.expected
value
value: unknown
Defined in: src/primitives/errors/ValidationError.ts:18
Inherited from
InvalidFormatError.value
Methods
getErrorChain()
getErrorChain(): string
Defined in: src/primitives/errors/AbstractError.ts:94
Get full error chain as string for logging
Returns
string
Inherited from
InvalidFormatError.getErrorChain
toJSON()
toJSON():Defined in: src/primitives/errors/AbstractError.ts:110 Serialize error to JSON for logging/telemetryRecord<string,unknown>
Returns
Record<string, unknown>
Inherited from
InvalidFormatError.toJSON
IllegalMixtureError
Defined in: src/primitives/Ens/errors.ts:30 Illegal mixture error (incompatible script combinations)Throws
Extends
Constructors
Constructor
new IllegalMixtureError(Defined in: src/primitives/Ens/errors.ts:31options):IllegalMixtureError
Parameters
options
cause?
Error
code?
string
context?
Record<string, unknown>
docsPath?
string
value
string
Returns
IllegalMixtureError
Overrides
InvalidFormatError.constructor
Properties
cause?
Defined in: src/primitives/errors/AbstractError.ts:56 Root cause of this error (for error chaining)optionalcause:Error
Inherited from
InvalidFormatError.cause
code
code: string
Defined in: src/primitives/errors/AbstractError.ts:39
Machine-readable error code for programmatic handling
Example
Inherited from
InvalidFormatError.code
context?
Defined in: src/primitives/errors/AbstractError.ts:45 Additional context metadata for debuggingoptionalcontext:Record<string,unknown>
Example
Inherited from
InvalidFormatError.context
docsPath?
Defined in: src/primitives/errors/AbstractError.ts:51 Path to documentation for this erroroptionaldocsPath:string
Example
Inherited from
InvalidFormatError.docsPath
expected
expected: string
Defined in: src/primitives/errors/ValidationError.ts:19
Inherited from
InvalidFormatError.expected
value
value: unknown
Defined in: src/primitives/errors/ValidationError.ts:18
Inherited from
InvalidFormatError.value
Methods
getErrorChain()
getErrorChain(): string
Defined in: src/primitives/errors/AbstractError.ts:94
Get full error chain as string for logging
Returns
string
Inherited from
InvalidFormatError.getErrorChain
toJSON()
toJSON():Defined in: src/primitives/errors/AbstractError.ts:110 Serialize error to JSON for logging/telemetryRecord<string,unknown>
Returns
Record<string, unknown>
Inherited from
InvalidFormatError.toJSON
InvalidLabelExtensionError
Defined in: src/primitives/Ens/errors.ts:8 Invalid label extension error (double-dash at positions 2-3)Throws
Extends
Constructors
Constructor
new InvalidLabelExtensionError(Defined in: src/primitives/Ens/errors.ts:9options):InvalidLabelExtensionError
Parameters
options
cause?
Error
code?
string
context?
Record<string, unknown>
docsPath?
string
value
string
Returns
InvalidLabelExtensionError
Overrides
InvalidFormatError.constructor
Properties
cause?
Defined in: src/primitives/errors/AbstractError.ts:56 Root cause of this error (for error chaining)optionalcause:Error
Inherited from
InvalidFormatError.cause
code
code: string
Defined in: src/primitives/errors/AbstractError.ts:39
Machine-readable error code for programmatic handling
Example
Inherited from
InvalidFormatError.code
context?
Defined in: src/primitives/errors/AbstractError.ts:45 Additional context metadata for debuggingoptionalcontext:Record<string,unknown>
Example
Inherited from
InvalidFormatError.context
docsPath?
Defined in: src/primitives/errors/AbstractError.ts:51 Path to documentation for this erroroptionaldocsPath:string
Example
Inherited from
InvalidFormatError.docsPath
expected
expected: string
Defined in: src/primitives/errors/ValidationError.ts:19
Inherited from
InvalidFormatError.expected
value
value: unknown
Defined in: src/primitives/errors/ValidationError.ts:18
Inherited from
InvalidFormatError.value
Methods
getErrorChain()
getErrorChain(): string
Defined in: src/primitives/errors/AbstractError.ts:94
Get full error chain as string for logging
Returns
string
Inherited from
InvalidFormatError.getErrorChain
toJSON()
toJSON():Defined in: src/primitives/errors/AbstractError.ts:110 Serialize error to JSON for logging/telemetryRecord<string,unknown>
Returns
Record<string, unknown>
Inherited from
InvalidFormatError.toJSON
InvalidUtf8Error
Defined in: src/primitives/Ens/errors.ts:118 Invalid UTF-8 error (malformed UTF-8 encoding)Throws
Extends
Constructors
Constructor
new InvalidUtf8Error(Defined in: src/primitives/Ens/errors.ts:119options):InvalidUtf8Error
Parameters
options
cause?
Error
code?
string
context?
Record<string, unknown>
docsPath?
string
value
string
Returns
InvalidUtf8Error
Overrides
InvalidFormatError.constructor
Properties
cause?
Defined in: src/primitives/errors/AbstractError.ts:56 Root cause of this error (for error chaining)optionalcause:Error
Inherited from
InvalidFormatError.cause
code
code: string
Defined in: src/primitives/errors/AbstractError.ts:39
Machine-readable error code for programmatic handling
Example
Inherited from
InvalidFormatError.code
context?
Defined in: src/primitives/errors/AbstractError.ts:45 Additional context metadata for debuggingoptionalcontext:Record<string,unknown>
Example
Inherited from
InvalidFormatError.context
docsPath?
Defined in: src/primitives/errors/AbstractError.ts:51 Path to documentation for this erroroptionaldocsPath:string
Example
Inherited from
InvalidFormatError.docsPath
expected
expected: string
Defined in: src/primitives/errors/ValidationError.ts:19
Inherited from
InvalidFormatError.expected
value
value: unknown
Defined in: src/primitives/errors/ValidationError.ts:18
Inherited from
InvalidFormatError.value
Methods
getErrorChain()
getErrorChain(): string
Defined in: src/primitives/errors/AbstractError.ts:94
Get full error chain as string for logging
Returns
string
Inherited from
InvalidFormatError.getErrorChain
toJSON()
toJSON():Defined in: src/primitives/errors/AbstractError.ts:110 Serialize error to JSON for logging/telemetryRecord<string,unknown>
Returns
Record<string, unknown>
Inherited from
InvalidFormatError.toJSON
WholeConfusableError
Defined in: src/primitives/Ens/errors.ts:52 Whole confusable error (name resembles different script)Throws
Extends
Constructors
Constructor
new WholeConfusableError(Defined in: src/primitives/Ens/errors.ts:53options):WholeConfusableError
Parameters
options
cause?
Error
code?
string
context?
Record<string, unknown>
docsPath?
string
value
string
Returns
WholeConfusableError
Overrides
InvalidFormatError.constructor
Properties
cause?
Defined in: src/primitives/errors/AbstractError.ts:56 Root cause of this error (for error chaining)optionalcause:Error
Inherited from
InvalidFormatError.cause
code
code: string
Defined in: src/primitives/errors/AbstractError.ts:39
Machine-readable error code for programmatic handling
Example
Inherited from
InvalidFormatError.code
context?
Defined in: src/primitives/errors/AbstractError.ts:45 Additional context metadata for debuggingoptionalcontext:Record<string,unknown>
Example
Inherited from
InvalidFormatError.context
docsPath?
Defined in: src/primitives/errors/AbstractError.ts:51 Path to documentation for this erroroptionaldocsPath:string
Example
Inherited from
InvalidFormatError.docsPath
expected
expected: string
Defined in: src/primitives/errors/ValidationError.ts:19
Inherited from
InvalidFormatError.expected
value
value: unknown
Defined in: src/primitives/errors/ValidationError.ts:18
Inherited from
InvalidFormatError.value
Methods
getErrorChain()
getErrorChain(): string
Defined in: src/primitives/errors/AbstractError.ts:94
Get full error chain as string for logging
Returns
string
Inherited from
InvalidFormatError.getErrorChain
toJSON()
toJSON():Defined in: src/primitives/errors/AbstractError.ts:110 Serialize error to JSON for logging/telemetryRecord<string,unknown>
Returns
Record<string, unknown>
Inherited from
InvalidFormatError.toJSON
Type Aliases
Ens
Ens =Defined in: src/primitives/Ens/EnsType.ts:3string&object
Type Declaration
[brand]
readonly[brand]:"Ens"
Variables
_beautify()
Defined in: src/primitives/Ens/index.ts:18const_beautify: (name) =>Ens=_beautifyImpl
Parameters
name
Ens
Returns
Ens
_labelhash()
Defined in: src/primitives/Ens/index.ts:38const_labelhash: (label) =>Uint8Array
Parameters
label
Ens
Returns
Uint8Array
_namehash()
Defined in: src/primitives/Ens/index.ts:37const_namehash: (name) =>Uint8Array
Parameters
name
Ens
Returns
Uint8Array
_normalize()
Defined in: src/primitives/Ens/index.ts:28const_normalize: (name) =>Ens=_normalizeImpl
Parameters
name
Ens
Returns
Ens
from()
Defined in: src/primitives/Ens/index.ts:19constfrom: (name) =>Ens=fromImpl
Parameters
name
string
Returns
Ens
is()
Defined in: src/primitives/Ens/index.ts:20constis: (value) =>value is Ens=isImpl
Parameters
value
unknown
Returns
value is Ens
isValid()
Defined in: src/primitives/Ens/index.ts:21constisValid: (name) =>boolean=isValidImpl
Parameters
name
string
Returns
boolean
Labelhash()
Defined in: src/primitives/Ens/index.ts:22constLabelhash: (deps) => (label) =>Uint8Array=LabelhashImpl
Parameters
deps
keccak256
(data) => Uint8Array
Returns
(label):Uint8Array
Parameters
label
Ens
Returns
Uint8Array
Namehash()
Defined in: src/primitives/Ens/index.ts:25constNamehash: (deps) => (name) =>Uint8Array=NamehashImpl
Parameters
deps
keccak256
(data) => Uint8Array
Returns
(name):Uint8Array
Parameters
name
Ens
Returns
Uint8Array
toString()
Defined in: src/primitives/Ens/index.ts:30consttoString: (name) =>string=toStringImpl
Parameters
name
Ens
Returns
string
validate()
Defined in: src/primitives/Ens/index.ts:31constvalidate: (name) =>void=validateImpl
Parameters
name
string
Returns
void
Functions
beautify()
beautify(Defined in: src/primitives/Ens/index.ts:58name):Ens
Parameters
name
string | Ens
Returns
Ens
labelhash()
labelhash(Defined in: src/primitives/Ens/index.ts:66label):Uint8Array
Parameters
label
string | Ens
Returns
Uint8Array
namehash()
namehash(Defined in: src/primitives/Ens/index.ts:62name):Uint8Array
Parameters
name
string | Ens
Returns
Uint8Array
normalize()
normalize(Defined in: src/primitives/Ens/index.ts:54name):Ens
Parameters
name
string | Ens
Returns
Ens
