Every NEAR account is identified by a specific address. Based on their name, two types of accounts can be distinguished:
- Named accounts, with human readable names such as
alice.near
. - Implicit accounts, referred by 64 chars (e.g.
98793cd91a3f870fb126f662858[...]
).
- :::tip
- For an account name to be valid, it must adhere to the specification’s account ID rules.
- ::
Implicit Accounts
Implicit accounts are similar to the classic Bitcoin/Ethereum accounts. They are defined by a 64 character address, which corresponds
to a unique ED25519 key-pair.
For example:
- The public key in base58:
BGCCDDHfysuuVnaNVtEhhqeT4k9Muyem3Kpgq2U1m9HX
- Refers to the implicit account:
98793cd91a3f870fb126f66285808c7e094afcfc4eda8a970f6648cdf0dbd6de
- :::tip
- Check our section on how to create implicit accounts
- ::
Named Accounts
In NEAR, users can register named accounts (e.g. bob.near
) which are simpler to use and remember.
Moreover, named accounts can create sub-accounts of themselves, helping to better organize related-accounts.
In this way, named accounts work as domains, particularly:
- Only the
registrar
account can create short top-level accounts (<32 char). - Anyone can create long (>= 32 chars) top-level accounts.
- An account can only create immediate sub-accounts of itself.
In other words:
- Only
registrar
can create short top-level accounts (e.g.near
,aurora
). - Anyone can create long top-level accounts, e.g.
verylongaccountnamethatis32chars
. near
can createbob.near
, andbob.near
can createapp.bob.near
.near
cannot createapp.bob.near
, andtest.near
cannot createsub.example.near
.
- Currently, mainnet accounts are sub-accounts of
.near
(example.near
), and testnet accounts are sub-accounts oftestnet
- (
example.testnet
). -
::info
Accounts have no control over sub-accounts, since they do NOT share access keys - ::
-
::tip
Check our section on how to create named accounts - ::