XtzAddrPrefixes class

Enum defining address prefixes for Tezos (XTZ) blockchain addresses.

This enum specifies the address prefixes for Tezos blockchain addresses, which differentiate between various address types (e.g., tz1, tz2, tz3).

Each enum value corresponds to a specific address prefix and consists of a list of integers representing the prefix bytes. The enum also provides a static method, fromName, to retrieve the enum value corresponding to a given name.

Example usage:

final prefix = XtzAddrPrefixes.tz1;
final prefixBytes = prefix.value;
final prefixName = prefix.name;

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value List<int>
The bytes that make up the address prefix.
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

Static Methods

getByIndex(int index) XtzAddrPrefixes

Constants

tz1 → const XtzAddrPrefixes
Address prefix for tz1 addresses.
tz2 → const XtzAddrPrefixes
Address prefix for tz2 addresses.
tz3 → const XtzAddrPrefixes
Address prefix for tz3 addresses.
values → const List<XtzAddrPrefixes>