Skip to main content
The Account by Key API allows you to find which accounts are associated with specific public keys. This is useful for discovering account ownership and authority relationships.

get_key_references

Find all accounts that have a specific public key in their owner, active, or posting authorities.

Parameters

TPublicKey[]
required
Array of public keys to look up. Keys should be in the standard Hive format (e.g., STM… or TST… for testnet).

Response

string[][]
A two-dimensional array where each element corresponds to one input key. Each sub-array contains the account names that have that key in their authorities.The order of the outer array matches the order of keys in the request. If a key is not associated with any accounts, its corresponding array will be empty.

Common use cases

Check key ownership

Verify which accounts control a specific public key:

Bulk key lookup

Look up multiple keys efficiently in a single request:

Recover account from key

Find accounts you control when you only have the private key:

Verify authority

Check if a key has authority for a specific account:

Understanding authorities

Hive accounts have three types of authorities, each with different permissions:
  • Owner: Full control over the account, including authority changes
  • Active: Can perform most operations like transfers and power ups
  • Posting: Can post content, vote, and perform social operations
The get_key_references endpoint searches all three authority types. A key may be in one, multiple, or all authorities for an account. To get detailed authority information for specific accounts, use the Database API’s find_accounts endpoint.