Learn different methods to host your XRP Ledger TOML file
A TOML (Tom's Obvious, Minimal Language) file is a configuration file format that's easy for humans to read and write. In the context of the XRP Ledger (XRPL), a TOML file is used to provide metadata about your token, including information about the issuer, token properties, and more.
For XRPL tokens, the TOML file needs to be hosted at a specific location: https://yourdomain.com/.well-known/xrp-ledger.toml
Hosting a proper TOML file provides several benefits:
A basic XRP Ledger TOML file structure looks like this:
[[ISSUERS]]
address = "rCSCManTZ8ME9EoLrSHHYKW8PPwWMgkwr"
name = "CasinoCoin"
[[TOKENS]]
issuer = "rCSCManTZ8ME9EoLrSHHYKW8PPwWMgkwr"
currency = "CSC"
name = "CasinoCoin"
desc = "CasinoCoin (CSC) is a digital currency, developed specifically for the regulated gaming industry."
icon = "https://xumm.app/assets/icons/currencies/ex-csc-3.png"
[[TOKENS.WEBLINKS]]
url = "https://casinocoin.im"
type = "website"
title = "Official Website"
[[TOKENS.WEBLINKS]]
url = "https://casinocoin.info"
type = "website"
title = "Token Info Dashboard"
[[TOKENS.WEBLINKS]]
url = "https://twitter.com/CasinoCoin"
type = "socialmedia"
You can customize this template with your token's details:
There are several free and easy methods to host your TOML file. Choose the one that works best for you:
GitHub Pages is a free hosting service provided by GitHub that allows you to host websites directly from your GitHub repository.
.well-known
in your repository..well-known
folder, create a file named xrp-ledger.toml
._config.yml
in the root of your repository with the following content:
include: [".well-known"]
https://yourusername.github.io/yourrepository/.well-known/xrp-ledger.toml
Vercel is a cloud platform for static sites and serverless functions that's very easy to use.
public
.public
folder, create a folder named .well-known
..well-known
folder, create a file named xrp-ledger.toml
.https://your-project-name.vercel.app/.well-known/xrp-ledger.toml
Netlify is another excellent platform for hosting static websites.
.well-known
..well-known
folder, create a file named xrp-ledger.toml
._redirects
in the root of your repository with the following content:
/* /index.html 200
https://your-site-name.netlify.app/.well-known/xrp-ledger.toml
Cloudflare Pages is a JAMstack platform for front-end developers to collaborate and deploy websites.
.well-known
..well-known
folder, create a file named xrp-ledger.toml
._headers
in the root of your repository with the following content:
/*
Access-Control-Allow-Origin: *
https://your-project-name.pages.dev/.well-known/xrp-ledger.toml
If you want to use your own domain, you can connect it to any of the above platforms:
https://yourdomain.com/.well-known/xrp-ledger.toml
Your token's icon URL is an important part of the TOML file. Here are several free ways to host your token's icon:
You can host your token icon in the same GitHub repository where you host your TOML file.
https://raw.githubusercontent.com/yourusername/yourrepository/main/youricon.png
icon
field.Imgur is a free image hosting service that's easy to use.
icon
field.Similar to GitHub Pages, GitLab also provides free hosting.
https://yourusername.gitlab.io/yourrepository/youricon.png
Cloudinary offers a free tier with image optimization features.
icon
field.[[TOKENS]]
issuer = "rCSCManTZ8ME9EoLrSHHYKW8PPwWMgkwr"
currency = "CSC"
name = "CasinoCoin"
desc = "CasinoCoin (CSC) is a digital currency, developed specifically for the regulated gaming industry."
icon = "https://raw.githubusercontent.com/yourusername/yourrepository/main/token-icon.png"
After hosting your TOML file, you should verify that it's accessible and correctly formatted:
https://yourdomain.com/.well-known/xrp-ledger.toml
If your TOML file isn't accessible, try these common solutions:
.well-known/xrp-ledger.toml
).For more information about XRPL TOML files, check out these resources: