Class Federation
Inheritance
System.Object
Federation
Namespace: System.Dynamic.ExpandoObject
Assembly: stellar-dotnet-sdk.dll
Syntax
public static class Federation : object
Methods
Resolve(String)
This method is a helper method for handling user inputs that contain destination
value.
It accepts two types of values:
For Stellar address (ex. bob*stellar.org`) it splits Stellar address and then tries to find information about
federation server instellar.toml file for a given domain.
For account ID (ex. GB5XVAABEQMY63WTHDQ5RXADGYF345VWMNPTN2GFUDZT57D57ZQTJ7PS) it simply returns the given Account ID.
Declaration
public static async Task<FederationResponse> Resolve(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | Stellar address or account id |
Returns
Task<FederationResponse> |
Exceptions
MalformedAddressException
|
ConnectionErrorException
|
stellar_dotnet_sdk.federation.NoFederationServerException
|
FederationServerInvalidException
|
StellarTomlNotFoundInvalidException
|
NotFoundException
|
ServerErrorException
|