Stellar uses different address formats for different purposes. This library ensures you handle them correctly and safely.Documentation Index
Fetch the complete documentation index at: https://stellaraddresskit.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Support Table
| Type | Prefix | Description | Usage |
|---|---|---|---|
| G Address | G... | Ed25519 Public Key (Classic) | Primary account identifier. |
| M Address | M... | Multiplexed Address (SEP-23) | G-address + 64-bit Memo ID. |
| C Address | C... | Contract ID (Soroban) | Identifier for smart contracts. |
M-Addresses (Muxed)
Multiplexed addresses are the preferred way to handle deposits for pooled accounts. They encode both the destination and the user’s ID into a single string, removing the need for a separate memo field.The library automatically expands M-addresses into their base G-address and routing ID.
C-Addresses (Contracts)
If a user provides a C-address in a classic deposit flow, the library returns anINVALID_DESTINATION error. Contracts should only be used as destinations for Soroban-specific integrations.