getWithdrawAddress method
Implementation
Future<String> getWithdrawAddress(String delegator) async {
String root =
"${TerraClientConfiguration.blockchainResourcePath}${CosmosBaseConstants.COSMOS_DISTRIBUTION_DELEGATORS}/$delegator/${CosmosDistributionResources.WITHDRAW_ADDRESS}";
var response =
await apiRequester.getAsync<DistributionWithDrawInfoJson>(root);
if (response.successful!) {
return DistributionWithDrawInfoJson.fromJson(response.result!)
.withdraw_address;
}
throw Exception("");
}