Explanation of the SS58 address encoding scheme used in Substrate chains.
ss58 or substrate58 is an address encoding scheme that is commonly used in substrate-based chains. It is similar to Base58 encoding format, with some modifications.
Under basic ss58 encoding format an address can be encoded as:
from_ss58(varchar)
→ varbinary
Converts an ss58-encoded string to the corresponding VARBINARY
address.
to_ss58(varbinary, int)
→ varchar
Encodes an address of a specific network type into its ss58 VARCHAR
representation. For example:
Polkadot
has address type 0Kusama
has address type 2Generic Substrate
has address type 42Explanation of the SS58 address encoding scheme used in Substrate chains.
ss58 or substrate58 is an address encoding scheme that is commonly used in substrate-based chains. It is similar to Base58 encoding format, with some modifications.
Under basic ss58 encoding format an address can be encoded as:
from_ss58(varchar)
→ varbinary
Converts an ss58-encoded string to the corresponding VARBINARY
address.
to_ss58(varbinary, int)
→ varchar
Encodes an address of a specific network type into its ss58 VARCHAR
representation. For example:
Polkadot
has address type 0Kusama
has address type 2Generic Substrate
has address type 42