[][src]Crate stellar_toml

Stellar Toml

The stellar-toml provides functions to access the stellar.toml file. This file contains information about an organization's Stellar integration. See SEP-0001 for more information.

Example Usage

use stellar_toml::resolve;

let stellar = resolve("www.stellar.org").await?;
for validator in stellar.validators {
    println!("Name: {:?}, Host: {:?}", validator.display_name, validator.host);
}

Structs

Currency

Contains information about a currency supported by the organization.

Documentation

This section contains information about an organization.

PointOfContact

Contains identifying information for the primary point of contact or principal(s) of the organization.

StellarToml

The stellar.toml file is used to provide a common place where the Internet can find information about your organization’s Stellar integration.

Validator

Information about an organization validator node.

Enums

AnchoredCurrencyType

Type of asset anchored.

CurrencyStatus

Status of a token.

Error

Crate error type.

Constants

STELLAR_TOML_PATH

stellar.toml path.

Functions

resolve

Returns a parsed stellar.toml file at domain.

resolve_url

Returns a parsed stellar.toml file at domain.

stellar_toml_path

Returns the https uri to the stellar.toml file at domain.

stellar_toml_path_insecure

Returns the http uri to the stellar.toml file at domain.