Hello is there any function available from which we can retrieve 12 char name by giving private key ? or you can say api function or eos library for import eos account

1 Answer 1


First of all: Never publish your private key, don't make it public, don't paste it to any api's or so, the only place to paste it is your wallet.

Assuming you are speaking about the public key of a specific account, there's the get_accounts_by_authorizers-endpoint provided by the chain-api. Note that it's only available if enable-account-queries is set to true in your nodeos-config.

  • please mark answers solving your problems as correct, for any future users.
    – cmadh
    Commented Apr 29, 2021 at 10:29
  • actullay i want to get my 12 char name from public key EOS........12a from this so please let me how to do that? Commented May 1, 2021 at 8:23
  • As said above, use the get_accounts_by_authorizers-endpoint in a node where it's enabled.
    – cmadh
    Commented May 1, 2021 at 10:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.