0026 XLS-26d: Token Metadata Extensions to xrp-ledger.toml #71
Replies: 3 comments 8 replies
-
I support this extension. Some thoughts: You've got a typo, You list In my opinion "airdrops" should not be a separate array but |
Beta Was this translation helpful? Give feedback.
-
if we are going to change this, lets make this into a MUCH more usefull data point and maximise the data held here... ok so 1st of, we must already know their domain, as we would'nt be at this stage, and domain is taken from from the ledger account settings.. something that would be good to see in [[PRINCIPALS]] is country of origin.... so for eg ..
i like the icon info in the [[TOKENS]] ✅
also in the [[VALIDATORS]] does this include, standard node info ?? although to be honest, 99% of token creators dont even care about this stuff, |
Beta Was this translation helpful? Give feedback.
-
I like this proposal a lot! Can we move it to a PR? |
Beta Was this translation helpful? Give feedback.
-
Token Metadata Extensions to xrp-ledger.toml
Revision: 4 (2024-08-08)
Contributors: mDou13
A set of additional fields for the existing xrp-ledger.toml standard. The goal is to
Motivation
It can be difficult to get your token properly represented in the XRPL ecosystem. To get your token's icon to be shown, you need to personally reach out to all wallet and platform vendors. These include Xaman, Bithomp, XRP Scan, XPMarket, XRPL Coins. All vendors rely on manual management of the metadata, so for any updates, you have to do the same roundtrip again.
For developers, it's not any different. There is no standardized way of obtaining asset metadata. This standard aims to change that.
The Extensions
[[ISSUERS]]
or[[ACCOUNTS]]
Defines an XRPL account that acts as an issuer of token(s).
address
String
name
String
description
ordesc
String
icon
oravatar
String
[[ISSUERS.WEBLINKS]]
or[[ACCOUNTS.WEBLINKS]]
Defines a web link associated with an issuing account. Must follow directly after the issuers stanza it belongs to.
url
String
type
String
info
,socialmedia
,community
,support
,whitepaper
,certificate
.title
String
[[TOKENS]]
or[[CURRENCIES]]
Defines an issued currency on the XRPL. Currency code and issuing address must be specified.
code
orcurrency
String
issuer
String
name
String
description
ordesc
String
icon
oravatar
String
asset_class
String
fiat
,commodity
,equity
,cryptocurrency
.[[TOKENS.WEBLINKS]]
or[[CURRENCIES.WEBLINKS]]
Defines a web link associated with a token. Must follow directly after the tokens stanza it belongs to.
url
String
https://
type
String
info
,socialmedia
,community
,support
,whitepaper
,certificate
.title
String
Example
The example .toml file below defines name, description, icon and 3 weblinks for the well known Elysian token.
Implementations
Parsing Library
The @xrplkit/xls26 package is a Javascript implementation of this standard. It parses the string of a .toml file into a Javascript object (JSON).
Crawler + API
The project XRPL Meta (Repo, Website) automatically scans the entire ledger for issuing accounts having the Domain field set. It fetches and parses their xrp-ledger.toml file, if published. The obtained data is stored, enriched and made available through a REST or WebSocket API.
Given the example above, this is the metadata collected for Elysian:
https://s1.xrplmeta.org/token/ELS:rHXuEaRYnnJHbDeuBH5w8yPh5uwNVh5zAg
Beta Was this translation helpful? Give feedback.
All reactions