Currency
Currency documentation from the stellar.toml CURRENCIES list.
Contains information about assets/currencies supported by the organization. One set of fields for each currency supported. Applicable fields should be completed and any that don't apply should be excluded.
Constructors
Properties
If anchored token, code/symbol for asset that token is anchored to. E.g. USD, BTC, SBUX, Address of real-estate investment property.
Type of asset anchored. Can be fiat, crypto, nft, stock, bond, commodity, realestate, or other.
A human readable string that explains the issuer's requirements for approving transactions.
URL of a SEP-0008 compliant approval service that signs validated transactions.
URL to attestation or other proof, evidence, or verification of reserves, such as third-party audits.
A pattern with ? as a single character wildcard. Allows a CURRENCIES entry to apply to multiple assets that share the same info. An example is futures, where the only difference between issues is the date of the contract. E.g. CORN???????? to match codes such as CORN20180604.
If this is an anchored crypto token, list of one or more public addresses that hold the assets for which you are issuing tokens.
Messages stating that funds in the collateralAddresses list are reserved to back the issued asset.
These prove you control the collateralAddresses. For each address you list, sign the entry in collateralAddressMessages with the address's private key and add the resulting string to this list as a base64-encoded raw signature.
Conditions on token.
Preference for number of decimals to show when a client displays currency balance.
Fixed number of tokens, if the number of tokens issued will never change.
true if token can be redeemed for underlying asset, otherwise false.
The number of tokens is dilutable at the issuer's discretion.
If anchored token, these are instructions to redeem the underlying asset from tokens.
Alternately, stellar.toml can link out to a separate TOML file for each currency by specifying toml="https://DOMAIN/.well-known/CURRENCY.toml" as the currency's only field. In this case only this field is filled. To load the currency data, you can use StellarToml.currencyFromUrl(toml).