Solana Namespace - Addresses

Author Haardik
Discussions-To https://github.com/ChainAgnostic/namespaces/pull/26
Status Draft
Type Standard
Created 2022-06-08
Updated 2022-06-08
Requires CAIP-2, CAIP-10

CAIP-10

For context, see the [CAIP-10][] specification.

Rationale

Solana “addresses” are base-58 encoded 256-bit Ed25519 public keys with length varying from 32 to 44 characters.

Syntax

The syntax of a Solana address matches the following regular expression:

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

Chain IDs

For context, see the [CAIP-2][] specification.

Network Name Chain ID
Mainnet 5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp
Devnet EtWTRABZaYq6iMfeYKouRu166VU2xqa1
Testnet 4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z

Test Cases

# Solana Mainnet
solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp:7S3P4HxJpyyigGzodYwHtCxZyUQe9JiBMHyRWXArAaKv

# Solana Devnet
solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1:DYw8jCTfwHNRJhhmFcbXvVDTqWMEVFBX6ZKUmG5CNSKK

# Solana Testnet
solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z:6LmSRCiu3z6NCSpF19oz1pHXkYkN4jWbj9K1nVELpDkT

References

Validating Account Addresses [CAIP-2]: https://github.com/ChainAgnostic/CAIPs/blob/master/CAIPs/caip-2.md [CAIP-10]: https://github.com/ChainAgnostic/CAIPs/blob/master/CAIPs/caip-10.md

Rights

Copyright and related rights waived via CC0.

Citation

Please cite this document as:

Haardik, "namespaces/solana-caip10: Solana Namespace - Addresses [DRAFT]," Chain Agnostic Namespaces, solana-caip10, June 2022 / June 2022. [Online serial]. Available: https://github.com/ChainAgnostic/namespaces/solana-caip10.md