is there any way to get the name for a given public key, something like?
eos.getKeyAccounts({
"public_key": "EOS73iTgPXEPXGazpU6XzU5Vq81Qk7TUHsmujTYn9DKJHm4MX1e2j"
})
Am I reading this wrong or is it out of date? https://github.com/EOSIO/eosjs-api/blob/master/src/api/v1/history.json#L32
When I call the function with no arguments i get this back
USAGE
getKeyAccounts - undefined
PARAMETERS
{
"public_key": "public_key_type"
}
RETURNS
{
"account_names": "account_name[]"
}
ERRORS
nothing special
the error I get is
api error => https://api.eosrio.io/v1/chain/get_account {"account_name":"EOS73iTgPXEPXGazpU6XzU5Vq81Qk7TUHsmujTYn9DKJHm4MX1e2j"}