Class AccountAddress
- Namespace
- Aptos
- Assembly
- Aptos.dll
[JsonConverter(typeof(AccountAddressConverter))]
public class AccountAddress : TransactionArgument, IScriptFunctionArgument, IEntryFunctionArgument
- Inheritance
-
AccountAddress
- Implements
- Inherited Members
Constructors
AccountAddress(byte[])
public AccountAddress(byte[] data)
Parameters
data
byte[]
Fields
Data
public readonly byte[] Data
Field Value
- byte[]
LENGTH
public const int LENGTH = 32
Field Value
LONG_LENGTH
public const int LONG_LENGTH = 64
Field Value
Properties
ZERO
public static AccountAddress ZERO { get; }
Property Value
Methods
CreateObjectAddress(AccountAddress, byte[])
public static AccountAddress CreateObjectAddress(AccountAddress creatorAddress, byte[] seed)
Parameters
creatorAddress
AccountAddressseed
byte[]
Returns
CreateObjectAddress(AccountAddress, string)
public static AccountAddress CreateObjectAddress(AccountAddress creatorAddress, string seed)
Parameters
creatorAddress
AccountAddressseed
string
Returns
CreateResourceAddress(AccountAddress, byte[])
public static AccountAddress CreateResourceAddress(AccountAddress creatorAddress, byte[] seed)
Parameters
creatorAddress
AccountAddressseed
byte[]
Returns
CreateResourceAddress(AccountAddress, string)
public static AccountAddress CreateResourceAddress(AccountAddress creatorAddress, string seed)
Parameters
creatorAddress
AccountAddressseed
string
Returns
CreateSeedAddress(AccountAddress, byte[], DeriveScheme)
public static AccountAddress CreateSeedAddress(AccountAddress creatorAddress, byte[] seed, DeriveScheme scheme)
Parameters
creatorAddress
AccountAddressseed
byte[]scheme
DeriveScheme
Returns
CreateSeedAddress(AccountAddress, string, DeriveScheme)
public static AccountAddress CreateSeedAddress(AccountAddress creatorAddress, string seed, DeriveScheme scheme)
Parameters
creatorAddress
AccountAddressseed
stringscheme
DeriveScheme
Returns
Deserialize(Deserializer)
public static AccountAddress Deserialize(Deserializer d)
Parameters
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
From(AccountAddress)
public static AccountAddress From(AccountAddress address)
Parameters
address
AccountAddress
Returns
From(Hex)
public static AccountAddress From(Hex hex)
Parameters
hex
Hex
Returns
From(byte[])
public static AccountAddress From(byte[] bytes)
Parameters
bytes
byte[]
Returns
From(string, int)
public static AccountAddress From(string str, int maxMissingChars = 4)
Parameters
Returns
FromStrict(AccountAddress)
public static AccountAddress FromStrict(AccountAddress address)
Parameters
address
AccountAddress
Returns
FromStrict(Hex)
public static AccountAddress FromStrict(Hex hex)
Parameters
hex
Hex
Returns
FromStrict(byte[])
public static AccountAddress FromStrict(byte[] bytes)
Parameters
bytes
byte[]
Returns
FromStrict(string)
public static AccountAddress FromStrict(string str)
Parameters
str
string
Returns
FromString(string, int)
public static AccountAddress FromString(string str, int maxMissingChars = 4)
Parameters
Returns
FromStringStrict(string)
public static AccountAddress FromStringStrict(string str)
Parameters
str
string
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
IsSpecial()
public bool IsSpecial()
Returns
IsValid(string, bool?)
public static bool IsValid(string str, bool? strict)
Parameters
Returns
Serialize(Serializer)
public override void Serialize(Serializer s)
Parameters
SerializeForScriptFunction(Serializer)
public override void SerializeForScriptFunction(Serializer s)
Parameters
ToByteArray()
public byte[] ToByteArray()
Returns
- byte[]
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
ToStringLong()
public string ToStringLong()
Returns
ToStringLongWithoutPrefix()
public string ToStringLongWithoutPrefix()
Returns
ToStringWithoutPrefix()
public string ToStringWithoutPrefix()