AptosAddress class
- Inheritance
-
- Object
- BcsSerialization
- BcsVariantSerialization
- MoveArgument<
List< int> > - MoveAddress
- AptosAddress
Constructors
- AptosAddress.new(String address)
-
factory
-
AptosAddress.fromBytes(List<
int> bytes) -
Factory constructor to create an AptosAddress from raw byte data
factory
-
AptosAddress.fromStruct(Map<
String, dynamic> json) -
factory
Properties
- address → String
-
The address as a string (in hex format with a "0x" prefix)
final
- argumentType → MoveArgumentType
-
finalinherited
- hashCode → int
-
The hash code for this object.
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> - address in raw byte format
-
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 -
A string representation of this object.
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 -
The equality operator.
override
Static Properties
- A → AptosAddress
-
Represents the address "0xA", which may be used for specialized system components
final
- four → AptosAddress
-
Represents the address "0x4", also used for predefined system modules.
final
- one → AptosAddress
-
Represents the address "0x1", commonly reserved for core framework modules.
final
- three → AptosAddress
-
Represents the address "0x3", reserved for system-level functionalities.
final
- two → AptosAddress
-
Represents the address "0x2", typically used for standard library modules.
final
- zero → AptosAddress
-
Represents the address "0x0", often used as a null or uninitialized value
final