Class: SolanaUtils
Defined in: solana-client/src/utils.ts:9
Solana implementation of OvercastUtils: an address is valid iff it parses as a base58 PublicKey. Stateless (no connection / key), so a single shared instance is enough — see solanaUtils.
Implements
OvercastUtils
Constructors
Constructor
new SolanaUtils(): SolanaUtils;
Returns
SolanaUtils
Methods
isValidAddress()
isValidAddress(value): boolean;
Defined in: solana-client/src/utils.ts:10
True if value is a well-formed address / id on this settlement layer.
Parameters
| Parameter | Type |
|---|---|
value | string |
Returns
boolean
Implementation of
OvercastUtils.isValidAddress
normalizeAddress()
normalizeAddress(value): string;
Defined in: solana-client/src/utils.ts:19
The canonical (trimmed, re-encoded) form of value, or throws if value
is not a valid address on this layer.
Parameters
| Parameter | Type |
|---|---|
value | string |
Returns
string
Implementation of
OvercastUtils.normalizeAddress