XRPAddressUtils class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
Static Methods
-
classicToXAddress(String addr, List<int> xAddrPrefix, {int? tag})
→ String
-
Converts a classic XRP address to an X-Address.
-
decodeAddress(String address, {List<int>? xAddrPrefix})
→ List<int>
-
Decodes the given address, whether it is an X-Address or a classic address, and returns the address bytes.
-
decodeXAddress(String addr, List<int>? prefix)
→ XRPXAddressDecodeResult
-
Decodes an X-Address and extracts the address hash and, if present, the tag.
-
ensureClassicAddress(String address)
→ String
-
Ensures that the provided address is a classic XRP address, and if not, converts it to a classic address.
-
hashToAddress(List<int> addrHash)
→ String
-
Generates an XRP (Ripple) address from the provided address hash.
-
hashToXAddress(List<int> addrHash, List<int> xAddrPrefix, int? tag)
→ String
-
Generates an XRP (Ripple) X-address from the provided address hash, X-Address prefix, and optional tag.
-
isClassicAddress(String? address)
→ bool
-
Checks whether the given address is a classic XRP address.
-
isXAddress(String? address)
→ bool
-
Checks whether the given address is an X-Address.
-
xAddressToClassic(String xAddrress, List<int> xAddrPrefix)
→ String
-
Converts an X-Address to a classic XRP address.