Methods
(static) resolve(domain, optsopt) → {Promise}
Returns a parsed stellar.toml
file for a given domain.
StellarSdk.StellarTomlResolver.resolve('acme.com')
.then(stellarToml => {
// stellarToml in an object representing domain stellar.toml file.
})
.catch(error => {
// stellar.toml does not exist or is invalid
});
- Source:
- See:
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
domain |
string
|
Domain to get stellar.toml file for |
|||||||||||||
opts |
object
|
<optional> |
Options object
|
Returns:
- Type:
-
Promise
A Promise
that resolves to the parsed stellar.toml object