SolAddress class
Represents a Solana address.
- Available extensions
Constructors
- SolAddress.new(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
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.
-
toReadOnly(
) → AccountMeta -
Available on SolAddress, provided by the QuickAccountMeta extension
Create an AccountMeta instance indicating the account is neither a signer nor writable. -
toSigner(
) → AccountMeta -
Available on SolAddress, provided by the QuickAccountMeta extension
Create an AccountMeta instance indicating the account is a signer but not writable. -
toSignerAndWritable(
) → AccountMeta -
Available on SolAddress, provided by the QuickAccountMeta extension
Create an AccountMeta instance indicating the account is both a signer and writable. -
toString(
) → String -
A string representation of this object.
override
-
toWritable(
) → AccountMeta -
Available on SolAddress, provided by the QuickAccountMeta extension
Create an AccountMeta instance indicating the account is writable but not a signer.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Constants
- defaultPubKey → const SolAddress