fairDataSociety / fdp-storage

Serverless Web3 filesystem for organizing users' personal data implemented in Typescript.

Home Page:https://www.npmjs.com/package/@fairdatasociety/fdp-storage

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: "User account already uploaded" on account imported using a mnemonic phrase.

rampall opened this issue · comments

Is there a method to check if an imported (using mnemonic phrase) wallet account has already been registered on-chain or not?
For example to show a "Register" button only if the account isnt portable yet.

Related: Is it possible to get the registered username from AccountData class?

@nugaon please triage.

You can check whether the imported wallet is registered already with a given username by the fdp.account.isPublicKeyEqual(username) method.

It is detailed in the README section.

Related: Is it possible to get the registered username from AccountData class?

No, it is not possible currently since we do not have reverse lookup registrar contract.
If you have such needs please create a ticket in FDP Contracts but the ENS was used for only portable accounts feature so far that does not require reverse lookup.