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


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
    Apr 29 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? May 1 at 8:23
  • As said above, use the get_accounts_by_authorizers-endpoint in a node where it's enabled.
    – cmadh
    May 1 at 10:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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