create a method which recieves aid and returns issuerName
2byrds opened this issue · 2 comments
2byrds commented
create a method which recieves aid and returns issuerName
rodolfomiranda commented
@HunnySajid , we do not have a method in signify-ts
to retrieve an aid by its aid string. What we can do is in the listIdentifiers
function in the browser, it to iterate until we gel all aids, something like
const listIdentifiers = async () => {
validateClient();
let aids: any[] = []
let start = 0;
let total = 25;
while (start < total) {
const res = await _client?.identifiers().list(start, start + 24);
aids = aids.concat(res.aids);
total = res.total;
start = res.end + 1;
}
return aids;
};
HunnySajid commented
closing as it is merged with #135