Quantcast
Channel: Is there a specific format of how a Solana address should look like? - Solana Stack Exchange
Viewing all articles
Browse latest Browse all 4

Answer by nickfrosty for Is there a specific format of how a Solana address should look like?

$
0
0

Solana address do not have a any specific starting value (like "0x" on Ethereum).

But like you pointed out, these addresses are base58 encoded version of a 32 byte array. Resulting in a specific string length between 32-44 characters long.

So if you wanted to perform some very simple validity format checks, you could use a regex like this:

[1-9A-HJ-NP-Za-km-z]{32,44}

Note that base58 strings will NOT use the entire regular English alphabet.

You can also read more about these on the Solana docs site here: https://docs.solana.com/integrations/exchange#basic-verfication


Viewing all articles
Browse latest Browse all 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>