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

address from public key #152

Open
dev-dantealighieri opened this issue Dec 16, 2024 · 2 comments
Open

address from public key #152

dev-dantealighieri opened this issue Dec 16, 2024 · 2 comments

Comments

@dev-dantealighieri
Copy link

hi,

I'm using get key accounts endpoint of hyperion for getting address from public key, but its not working if the hyperion started syncing with a node that is created with a snapshot that is created after accounts creation, how can i solve this issue? I don't want to create a archieve node, I want it to have all the account information, how is this possible? Can I achieve this by configuring my node or hyperion?

this is how i get the account name normally

      const result = await this.indexerRequest(
        EOS_INDEXER_API.V2.GET_KEY_ACCOUNTS,
        {
          method: GET_METHOD,
          params: {
            public_key: base58PublicKey,
          },
        },
      );

thanks in advance, Dante

@dev-dantealighieri
Copy link
Author

hello dear developers, could you please help me here
@igorls @felipeasf @joaoocb @fschoell

@igorls
Copy link
Member

igorls commented Dec 18, 2024

Hello, if you are running your own node from a snapshot I recommend using the enable-account-queries feature on nodeos, that will allow you to use the get_accounts_by_authorizers

We will include an additional CLI tool to the next hyperion release that can also sync your state to elastic when starting from snapshots, but for now this I recommend using the native /v1/chain/get_accounts_by_authorizers for this purpose

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

2 participants