Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create a method which recieves aid and returns issuerName #124

Closed
2byrds opened this issue Mar 6, 2024 · 2 comments
Closed

create a method which recieves aid and returns issuerName #124

2byrds opened this issue Mar 6, 2024 · 2 comments
Assignees

Comments

@2byrds
Copy link
Collaborator

2byrds commented Mar 6, 2024

No description provided.

@2byrds 2byrds added this to the Advanced features milestone Mar 6, 2024
@rodolfomiranda
Copy link
Collaborator

@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
Copy link
Collaborator

closing as it is merged with #135

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants