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

[Feature Request] Provide a "addressOrName" address resolver #312

Open
gregnazario opened this issue Feb 26, 2024 · 0 comments
Open

[Feature Request] Provide a "addressOrName" address resolver #312

gregnazario opened this issue Feb 26, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@gregnazario
Copy link
Contributor

🚀 Feature Request Description

Would like it easy to be able to have all apps simply deal with address or name in a standardized way, along with a display in a standardized way:

function resolveNameOrAddress({nameOrAddress: AccountAddressInput}): AccountAddress {
  // Regex `.apt`
  if (... .apt) {
    // resolve address
  } else if (accountAddress hex) {
    // load address
  } else {
    // error out
  }
}
@gregnazario gregnazario added the enhancement New feature or request label Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Backlog
Development

No branches or pull requests

1 participant