What is Stellar.toml file?
Stellar.toml is a file where you put the information about your organization's Stellar integration. To create the link between information on the file and the account, you need to create a link between the home domain of the Stellar account and the domain that hosts the toml file. The file can be read by humans as well as the machine. The file is written in TOML which is a simple file format and used widely. If anyone looks into it, it shows that the owner of the file claims responsibility for the account and assets listed in it.
SEP-1 Specifies five sections that you have to add to your toml file.
- Account Information
One field listed in account information is "ACCOUNT". It is a list of public keys of all the Stellar accounts associated with your asset. Listing of keys confirms that the owner of the toml file owns them.
Sample:-
ACCOUNTS=[<publicKey1>,<publicKey2>,<publicKey3>,...]
- Issuer Documentation
Issuer documentation includes the information of your organization which goes into a table called [DOCUMENTATION]. It ensures that your business is legitimate and trustworthy.
The table must be defined as a field and value combination. Following are the fields:
- ORG_NAME - It requires the name of your organization.
- ORG_DBA - It requires the DBA of the organization. I.e. registered name
- ORG_URL - It requires the domain of your organization
- ORG_LOGO - It requires the logo of your organization.
- ORG_DESCRIPTION - It requires the description of your organization.
- ORG_PHYSICAL_ADDRESS- It requires the address of your organization.
- ORG_PHYSICAL_ADDRESS_ATTESTATION - It requires the image URL that confirms your organization address like any bill at your organization's address.
- ORG_PHONE_NUMBER- It requires the phone number of your organization.
- ORG_PHONE_NUMBER_ATTESTATION- It requires the image URL that confirms your phone number like the bill of the phone number with the name of your organization.
- ORG_KEYBASE-It requires the information of keybase account which include the proof of ownership with the organization domain.
- ORG_TWITTER- It requires the twitter information of organization's account
- ORG_GITHUB-It requires the Github information of the organization's account
- ORG_OFFICIAL_EMAIL- It requires the official email address.
Sample:-
[DOCUMENTATION]
ORG_NAME="<Name of the organization>"
ORG_DBA="<DBA of the organization>"
ORG_URL="<organization URL>"
ORG_LOGO="<Link of URL of your logo>"
ORG_DESCRIPTION="<Description of the issuer>"
ORG_PHYSICAL_ADDRESS="<Address of the organization>"
ORG_PHYSICAL_ADDRESS_ATTESTATION="<Attestation of your address>"
ORG_PHONE_NUMBER="<Organization's contact number>"
ORG_PHONE_NUMBER_ATTESTATION="Attestation of contact number"
ORG_KEYBASE="<Account name>"
ORG_TWITTER="<organization's Twitter username>"
ORG_GITHUB="<organization's git>"
ORG_OFFICIAL_EMAIL="<Official Email>"
- Point of contact Documentation
Point of contact includes the primary contact point of your organization which goes into TOML array of tables [[PRINCIPALS]]. This requires the contact information of at least one person in your organization.
Following are the fields of the table:-
- name- It requires the full name of the person.
- email- It requires the email of the person.
- key base- Account information of the person
- twitter-Twitter information of the person
- GitHub - It requires the GitHub information of the person
- Id_photo_hash - It requires an SHA-256 hash of a photo of an identification document.
- Verification_photo_hash- It requires an SHA-256 hash of photo of holding signed, detailed, handwritten message.
Sample:-
name="<Name>"
email="<email address>"
keybase="<account details>"
twitter="<twitter information>"
github="<git information>"
id_photo_hash="<ID photo hash>"
verification_photo_hash-"<Validation photo hash>"
- Token Documentation
This includes information about your token which goes into an array of tables called [[CURRENCIES]]. You can include multiple currencies in a single toml file.
Following are the fields of the table:-
- CODE- It refers to as the asset code. This is the key field that identifies your token.
- ISSUER- It refers to as the public key of the issuer Stellar account. This is also the key field that identifies your token.
- STATUS- It defines the status of your token. It can be of live, dead or test.
- DISPLAY_DECIMALS- It defines the decimal places to display for the currency.
- Is_asset_anchored- It defines that your token can be redeemed for an asset outside the stellar network. It can be true or false.
- anchor_asset_code- It defines the anchor asset code of anchor.
- anchor_type_asset-It defines the category of your asset like fiat, crypto, bond, etc.
- Redemption_instructions- It defined the instruction to redeem your token.
Sample:-
name="<name>"
email="<email address>"
keybase="<account details>"
twitter="<twitter information>"
github="<git information>"
id_photo_hash="<id hash>"
verification_photo_hash-"<photo hash>"
- Validator information
Validator requires the information of nodes running as the validator for the network which is listed in the array of tables [[VALIDATORS]]. Each table represents the information of a node.
Following are the fields table:-
- ALIAS- It requires the name of a node according to regex "˜^[a-z0-9-]{2,16}$'.
- DISPLAY_NAME - It requires the human-readable display name of the node.
- PUBLIC_KEY - It requires the public key of node stellar account.
- HOST - It defines the IP PORT combination of the node.
- HISTORY - It defines the URI of the validator.
Sample:-
[[VALIDATORS]]
ALIAS="<name of node>"
DISPLAY_NAME="<display name of node>"
HOST="<IP:PORT of node>"
PUBLIC_KEY="<public key of node stellar account>"
HISTORY="<URI of node>
-
Way to publish toml file.
After the compilation of above-mentioned points, you need to post your TOML file with CORS enable to allow access request from another server on the following domain.
https://YOUR_DOMAIN/.well-known/stellar.toml
November 21, 2024 at 11:45 am
Your comment is awaiting moderation.