SolAddress class

Represents a Solana address.

Available extensions

Constructors

SolAddress(String address)
Constructs a Solana address with checking curve.
factory
SolAddress.fromPublicKey(List<int> pubKeyBytes)
Constructs a Solana address from a public key.
factory
SolAddress.uncheckBytes(List<int> keyBytes)
Constructs a Solana address without checking the curve of the bytes.
factory
SolAddress.uncheckCurve(String address)
Constructs a Solana address without checking the curve.
factory
SolAddress.unchecked(String address)
Constructs a Solana address without performing validation.
const
SolAddress.withSeed({required SolAddress fromPublicKey, required String seed, required SolAddress programId})
Constructs a Solana address with a seed.
factory

Properties

address String
final
hashCode int
The hash code for this object.
no setteroverride
isOnCurve bool
no setter
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
toBytes() List<int>
Converts the address to bytes.
toPublicKey() SolanaPublicKey
Converts the address to a Solana public key.
toString() String
A string representation of this object.
override

Operators

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

Constants

defaultPubKey → const SolAddress