SuiAddress class
Represents a Sui blockchain address with utilities for serialization and comparison.
- Inheritance
-
- Object
- BcsSerialization
- BcsVariantSerialization
- MoveArgument<
List< int> > - MoveAddress
- SuiAddress
Constructors
- SuiAddress.new(String address)
-
Creates a Sui address from a hexadecimal string.
factory
-
SuiAddress.fromBytes(List<
int> bytes) -
Creates a Sui address from a byte array.
factory
-
SuiAddress.fromStruct(Map<
String, dynamic> json) -
factory
Properties
- address → String
-
The string representation of the Sui address.
final
- argumentType → MoveArgumentType
-
finalinherited
- hashCode → int
-
Returns the hash code for the Sui address, based on its string representation.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serializableType → BcsSerializableType
-
Specifies that this class represents a
variant
type.no setterinherited -
value
→ List<
int> -
The value associated with the Move type
finalinherited
- variantName → String
-
Returns the name of the variant (used as the key during serialization).
no setterinherited
Methods
-
asMoveArgument(
) → MoveArgument -
Converts the script arguments into a MoveArgument.
inherited
-
createLayout(
{String? property}) → Layout< Map< String, dynamic> > -
Creates a layout structure for serialization.
override
-
createVariantLayout(
{String? property}) → Layout< Map< String, dynamic> > -
Creates a layout structure specifically for variants.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toBcs(
{String? property}) → List< int> -
Serializes the object to BCS format (List of bytes).
inherited
-
toBcsBase64(
) → String -
Converts the BCS-encoded bytes to a Base64 string.
inherited
-
toBcsHex(
) → String -
Converts the BCS-encoded bytes to a hexadecimal string.
inherited
-
toBytes(
) → List< int> - Converts the Sui address to a byte array.
-
toJson(
) → Map< String, dynamic> -
Converts the variant structure to a JSON-compatible Map.
inherited
-
toLayoutStruct(
) → Map< String, dynamic> -
Converts the current object to a layout-friendly structure (Map format).
override
-
toString(
) → String -
Returns the string representation of the Sui address.
override
-
toVariantBcs(
{String? property}) → List< int> -
Serializes the variant into BCS format (List of bytes).
inherited
-
toVariantBcsBase64(
) → String -
Converts the serialized variant into a Base64 string.
inherited
-
toVariantBcsHex(
) → String -
Converts the serialized variant into a hexadecimal string.
inherited
-
toVariantLayoutStruct(
) → Map< String, dynamic> -
Converts the variant to a layout-friendly structure with the variant name as the key.
inherited
Operators
-
operator ==(
Object other) → bool -
Compares two Sui addresses for equality based on their string representation.
override
Static Properties
- one → SuiAddress
-
final
- two → SuiAddress
-
final