getUnbondingDelegationsForAllValuesReady static method
Implementation
static Future<UnbondingDelegation> getUnbondingDelegationsForAllValuesReady(
TerraRestfulService apiRequester, String delegator, String validator,
{PaginationOptions? options}) async {
String rootPath =
"${TerraClientConfiguration.blockchainResourcePath}${CosmosBaseConstants.COSMOS_STAKING_VALIDATORS_BASE}/$validator/${CosmosStakingConstants.DELEGATIONS}/$delegator/${CosmosStakingConstants.UNBONDING_DELEGATION}";
// if (options != null)
// {
// rootPath += PaginationOptionExtensions.GetPaginationRules(options);
// }
var response =
await apiRequester.getAsync<UnbondingDelegationJSON>(rootPath);
if (response.successful!) {
return UnbondingDelegation.fromJSON(
UnbondingDelegationJSON.fromJson(response.result!).unbond);
}
throw Exception("");
}