How to setup a xlm.sh site
xlm.sh is a gateway for .xlm websites, providing a seamless experience for accessing decentralized content. It simplifies the process of hosting and visiting dApps and static sites built on IPFS/IPNS, making it easier for users to interact with the decentralized ecosystem.
To set up a xlm.sh site, only a few steps are required:
We will guide you through the process of setting up a xlm.sh site in the following sections.
Get a Stellar Soroban Domain
To start setting up your xlm.sh site, you first need to obtain a Soroban Domain. Here's how:
- Visit the official Soroban Domains website at https://app.sorobandomains.org/
- Search and select your desired domain name
- Set up the domain address:
- Point your domain to an address you control
- The simplest way is to click "Use owner address" to automatically use your current wallet address
- Complete the registration process
This domain will serve as your personal identifier in the Soroban ecosystem, replacing the traditional long string of characters with a more user-friendly name. Here we have got a Stellar Soroban Domain: example.xlm
.
Upload your content to IPFS
To upload content to IPFS, you can use either IPFS Desktop or the command line tools. However, for beginners, using an IPFS Pinning Service might be a simpler option. There are several providers offering these services, including: web3.storage, Pinata and Filebase, among others.
Let's take web3.storage as an example:
- Create an account to get free quota
- Use their simple web interface to upload your website files directly - no command line required
- Once uploaded, you'll receive a CID (Content Identifier)
- This CID is your website's unique address on IPFS
For example, after uploading our site content we received the CID: bafybeifq2rzpqnqrsdupncmkmhs3ckxxjhuvdcbvydkgvch3ms24k5lo7q
.
Set up IPFS content for your Stellar account
Now that we have both a Stellar Soroban Domain and an IPFS CID, we need to link them together so that your website can be accessed through your_domain.xlm.sh
.
Below is a form where you only need to:
- Enter your domain name
- Enter your IPFS CID (or IPNS name)
- Click the confirm button
We will then build a transaction for you and guide you to Stellar Laboratory to complete the signing and submission process.