If I have only a private key, how shold I: 1. Check private key and generate public key 2. Get account name from Public or Private key via eosjs?
1 Answer
Use eosjs get_key_accounts
. See
https://github.com/EOSIO/eosjs-api/commit/21675aec294d6f65f3cbace049839751a087676f