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

how to get the first and last name of users? #76

Closed
krisbitney opened this issue Jan 8, 2024 · 3 comments
Closed

how to get the first and last name of users? #76

krisbitney opened this issue Jan 8, 2024 · 3 comments
Assignees

Comments

@krisbitney
Copy link
Contributor

The UI design suggests there is an intention of using user first and last names. How would these be obtained?

@sirpy
Copy link
Contributor

sirpy commented Jan 9, 2024

You will need to query the mongodb backend.
Results should be cached if exists and not query the backend again for a while.
if need to fetch multiple names then queries should be in parallel, ie using await promise.all
I'll provide credentials on slack

walletHash = keccack256(walletAddress)
findOne({"index.walletAddress.hash":walletHash},{"fullName.display":true})

@krisbitney
Copy link
Contributor Author

After a few hours of looking into this, I learned that you will need to create a MongoDB Realm to query from the browser

The mongodb package is a NodeJS package

I have a looked for another way, but it seems you need to either create a Realm or run a NodeJS server

@krisbitney krisbitney self-assigned this Jan 15, 2024
@krisbitney
Copy link
Contributor Author

resolved in #113

@L03TJ3 L03TJ3 closed this as completed Jan 29, 2024
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