getStakesByIds method

Future<List<DelegatedStake>> getStakesByIds(
  1. List<ObjectId> stakedSuiIds
)

Implementation

Future<List<DelegatedStake>> getStakesByIds(List<ObjectId> stakedSuiIds) async {
  final data = await client.request('suix_getStakesByIds', [stakedSuiIds]);
  List<DelegatedStake> delegatedStakes = [];
  for(var value in data){
    delegatedStakes.add(DelegatedStake.fromJson(value));
  }
  return delegatedStakes;
}