TWAnyAddress class abstract

Represents an address in C++ for almost any blockchain.

Implementers

Constructors

TWAnyAddress.new()

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

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

TWAnyAddressCoin(Pointer<Void> address) int
Returns coin type of address.
TWAnyAddressCreateBech32(Pointer<Utf8> string, int coin, Pointer<Utf8> hrp) Pointer<Void>
Creates an bech32 address from a string representation, a coin type and the given hrp. Must be deleted with TWAnyAddressDelete after use.
TWAnyAddressCreateBech32WithPublicKey(Pointer<Void> publicKey, int coin, Pointer<Utf8> hrp) Pointer<Void>
Creates an bech32 address from a public key and a given hrp.
TWAnyAddressCreateSS58(Pointer<Utf8> string, int coin, int ss58Prefix) Pointer<Void>
Creates an SS58 address from a string representation, a coin type and the given ss58Prefix. Must be deleted with TWAnyAddressDelete after use.
TWAnyAddressCreateSS58WithPublicKey(Pointer<Void> publicKey, int coin, int ss58Prefix) Pointer<Void>
Creates an SS58 address from a public key and a given ss58Prefix.
TWAnyAddressCreateWithPublicKey(Pointer<Void> publicKey, int coin) Pointer<Void>
Creates an address from a public key.
TWAnyAddressCreateWithPublicKeyDerivation(Pointer<Void> publicKey, int coin, int derivation) Pointer<Void>
Creates an address from a public key and derivation option.
TWAnyAddressCreateWithPublicKeyFilecoinAddressType(Pointer<Void> publicKey, int filecoinAddressType) Pointer<Void>
Creates a Filecoin address from a public key and a given address type.
TWAnyAddressCreateWithString(Pointer<Utf8> string, int coin) Pointer<Void>
Creates an address from a string representation and a coin type. Must be deleted with TWAnyAddressDelete after use.
TWAnyAddressData(Pointer<Void> address) Pointer<Void>
Returns underlaying data (public key or key hash)
TWAnyAddressDelete(Pointer<Void> address) → void
Deletes an address.
TWAnyAddressDescription(Pointer<Void> address) Pointer<Utf8>
Returns the address string representation.
TWAnyAddressEqual(Pointer<Void> lhs, Pointer<Void> rhs) bool
Compares two addresses for equality.
TWAnyAddressIsValid(Pointer<Utf8> string, int coin) bool
Determines if the string is a valid Any address.
TWAnyAddressIsValidBech32(Pointer<Utf8> string, int coin, Pointer<Utf8> hrp) bool
Determines if the string is a valid Any address with the given hrp.
TWAnyAddressIsValidSS58(Pointer<Utf8> string, int coin, int ss58Prefix) bool
Determines if the string is a valid Any address with the given SS58 network prefix.