info method
Get basic info from the anchor about what their TRANSFER_SERVER supports.
language
Language code specified using ISO 639-1. description fields in the response should be in this language. Defaults to en.
jwt
token previously received from the anchor via the SEP-10 authentication flow
Implementation
Future<InfoResponse> info(String language, String jwt) async {
Uri serverURI = Uri.parse(_transferServiceAddress + "/info");
_InfoRequestBuilder requestBuilder =
new _InfoRequestBuilder(httpClient, serverURI);
final Map<String, String> queryParams = {};
if (language != null) {
queryParams["lang"] = language;
}
InfoResponse response =
await requestBuilder.forQueryParameters(queryParams).execute(jwt);
return response;
}