On most blockchains, your address is a long string of characters tied to one secret key. That hexadecimal string is easy to mistype during a transfer, and if its single secret key leaks, the address is lost for good. Single-key networks try to solve this with add-on account abstraction and smart wallets that separate your wallet address from the signing keys behind it.
NEAR Protocol solves both problems at the protocol level: your account has a readable name, and the keys that control it can be added, limited, or replaced. Founded in 2017 by Illia Polosukhin and Alexander Skidanov and launched on mainnet in April 2020, NEAR is a sharded proof-of-stake blockchain for smart contracts (source: Wikipedia, NEAR Protocol). Instead of requiring an add-on smart wallet, NEAR natively supports readable .near account names alongside implicit hex, Ethereum-like 0x, and deterministic 0s addresses (source: NEAR Docs, Account ID).
Other chains need add-on smart wallets to do this, whereas on NEAR it is built in (source: NEAR Docs, Account Model). You can give an app limited permissions, swap keys without changing your address, run many transactions at once, and use keys designed to resist future quantum computers (source: NEAR Docs, Access Keys).
What are NEAR named accounts and access keys?
NEAR accounts are on-chain records identified by a unique address (such as yourname.near) that can hold tokens and smart contracts under the control of access keys (source: NEAR Docs, Account Model). Full-access keys control the whole account, while function-call keys limit an app to one contract (source: NEAR Docs, Access Keys).
At the base layer, a valid NEAR account ID is a string from 2 to 64 characters made of lowercase letters (a-z), numbers (0-9), and separator characters (., -, or _). In practice, the chain groups addresses into four formats (source: NEAR Docs, Account ID).
| Account format | Example address | Length | How it works |
|---|---|---|---|
| Named address | yourname.near, app.yourname.near | 2 to 64 chars | Created by registering a name or by a parent account; supports sub-accounts |
| Implicit address | fb9243ce... (lowercase hex) | 64 hex chars | Derived from a 32-byte ed25519 key; goes live on-chain when funded |
| Ethereum-like address | 0x85f17cf9...4b9f6a4 | 42 chars (0x + 40 hex) | Created when you sign in to a NEAR app with MetaMask |
| Deterministic address | 0s85f17cf9...4b9f6a4 | 42 chars (0s + 40 hex) | Calculated from the contract's code and starting data |
All four address formats live on the same sharded ledger and use the same multi-key rules. To fund a new wallet or cover the 0.007 NEAR account creation fee, you can buy NEAR on BloFin. You can buy NEAR on NEAR/USDT Spot (minimum order 0.1 NEAR) or trade its price on the NEARUSDT Perpetual (10 NEAR per contract, up to 75x leverage) after checking the BloFin fee schedule.
How .near names and sub-accounts work
Named accounts (yourname.near on mainnet, or yourname.testnet on testnet) work like domain names on the web, making it easy to send coins without copying a 64-character string (source: NEAR Docs, Account ID). Our guide to NEAR wallet setup walks through claiming your first .near name in a browser or mobile wallet.
Under the hood, named accounts follow a strict creation tree governed by five protocol rules (source: NEAR Docs, Account ID).
- Top-level names: Only NEAR's system account, called registrar, can create names with no dot, such as near, sweat, or kaiching.
- Registering a .near name: Your wallet asks the top-level near account (or testnet on the test network) to create the name for you and links it to your new key.
- Sub-accounts: Any named account can create accounts under its own name. For example, the owner of yourname.near can create app.yourname.near, and app.yourname.near can create v1.app.yourname.near.
- Strict parent-only creation: An account can only create direct sub-accounts of itself. The top-level near account cannot create app.yourname.near, and yourname.near cannot create sub.othername.near.
- Total sub-account independence: Once a sub-account is created, the parent account has zero control over its sub-account. On NEAR, yourname.near and app.yourname.near are separate on-chain entities with their own keys, balances, and contracts.
How much does it cost to register a new account on-chain? As shown in NEAR gas and storage staking, creating an account on NEAR costs up to 0.007 NEAR, which is burned by the chain. Every account takes up state on its shard (source: NEAR Docs, Architecture) and can hold up to 770 bytes without an extra storage deposit. At NEAR's storage rate of 1 NEAR per 100 KB (0.00001 NEAR per byte), 770 bytes of state is worth about 0.0077 NEAR (source: NEAR Docs, Storage Staking). The chain charges up to 0.007 NEAR by keeping back part of the gas price-difference refund when the account is created (source: NEAR Docs, Gas).
Example 1: Locking a sub-account contract. You own yourname.near and want to show users that a lending app at lend.yourname.near cannot be emptied by the parent account.
- Step 1: In one transaction from yourname.near, you create the lend.yourname.near sub-account, send it NEAR to cover storage, upload the contract, and start it (source: NEAR Docs, Transaction Anatomy).
- Step 2: Because yourname.near has no built-in power over lend.yourname.near after creation, yourname.near cannot move funds out of lend.yourname.near unless lend.yourname.near holds a key owned by you (source: NEAR Docs, Account ID).
- Step 3: If lend.yourname.near removes all of its access keys (or is created with zero keys), the contract account becomes locked. That proves to users that only the deployed smart-contract code controls lend.yourname.near (source: NEAR Docs, Access Keys).
Implicit 64-character hex, Ethereum-like 0x, and deterministic 0s addresses
While named accounts are ideal for everyday transfers, NEAR also supports three non-named address formats: 64-character hexadecimal implicit addresses, 42-character 0x Ethereum-like addresses, and 42-character 0s deterministic contract addresses (source: NEAR Docs, Account ID). Each format follows its own derivation and activation rules on-chain.
First, implicit addresses are 64-character lowercase hex strings (such as 8bca86065be487de45e795b2c3154fe834d53ffa07e0a44f29e76a2a5f075df8) that map straight to one ed25519 key pair (source: NEAR Docs, Account ID). When you create a wallet, it generates a public key from your 12-word seed phrase, and that key is converted into a 64-character address. You do not need to register an implicit address because it already exists as soon as the key does. It goes live on-chain the moment someone sends NEAR coins to that 64-character address, which adds the first full-access key by default (source: NEAR Docs, Access Keys).
Second, Ethereum-like addresses are 42-character strings starting with 0x followed by 40 lowercase hex digits (such as 0x85f17cf997934a597031b2e18a9ab6ebd4b9f6a4). That format matches the 20-byte address format used on Ethereum (source: ethereum.org, Accounts). These accounts are created on NEAR whenever a user logs in to a NEAR app through MetaMask or another Ethereum wallet (source: NEAR Docs, Account ID). Before a transfer, a careful wallet checks whether the receiving account exists on NEAR and should warn you if it does not, as covered in how to send and receive NEAR (source: NEAR Docs, Validating Recipient Accounts).
Third, deterministic addresses start with the prefix 0s followed by 40 hex digits (such as 0s85f17cf997934a597031b2e18a9ab6ebd4b9f6a4). Unlike regular accounts, a deterministic account's address is calculated from its initial contract code and pre-populated storage before the account is ever deployed on-chain.
- How the address is made: The address is calculated from the contract's code and starting data (up to 4 MiB per entry), so anyone can check that the address matches the contract.
- Creation and permanence rules: These accounts are created in a special way that checks on-chain that the address matches the contract (source: NEAR Docs, Account ID). Once created, deterministic accounts cannot be deleted and their code and initial storage stay fixed on-chain.
Full-access keys vs function-call keys and locked accounts
Every NEAR account can hold multiple access keys at the same time. That lets you separate master custody from everyday app sessions and swap out compromised keys without moving your balances to a new address (source: NEAR Docs, Account Model). NEAR divides access keys into two permission levels (source: NEAR Docs, Access Keys).
A full-access key grants full control over the account and must be kept strictly private. A holder signing with a full-access key can run five core actions on behalf of the account.
- Transfer tokens: Send NEAR to any account on the chain.
- Manage account lifecycle: Delete the account or create sub-accounts.
- Manage keys: Add new keys or remove old ones.
- Deploy code: Upload or update a smart contract on the account.
- Call contracts: Use any smart contract on the network.
A function-call key, by contrast, is a limited session key meant to be shared with apps, games, or scripts so they can sign routine contract calls in your name without wallet pop-ups. Every function-call key is blocked from sending native NEAR coins or attaching NEAR deposits to a call (source: NEAR Docs, Access Keys). Each function-call key is defined by three on-chain settings.
- Contract: The one smart contract this key can use; no other contract on NEAR can be called with this key.
- Allowed actions (optional): Which actions on that contract the key can use; if blank, it can use all of them.
- Allowance (optional): The NEAR gas budget cap for this key (setting it to 0 or leaving it blank gives an unlimited gas budget).
Removing every key from a NEAR account makes it locked on-chain, meaning only the account's own smart-contract code can move coins or add keys. Never delete your wallet's last full-access key, because losing all keys locks the account permanently (source: NEAR Docs, Avoiding Token Loss). Likewise, never leave only a function-call key whose gas allowance can run out (source: NEAR Docs, Access Keys). More safety steps are in is NEAR safe.
Example 2: Using a limited key for a social app. Suppose you connect yourname.near (which holds 100 NEAR and several NEP-141 tokens) to a social app that asks for a function-call key scoped to social.near with a 0.25 NEAR gas allowance.
- Routine posts and likes: The app uses its local function-call key to sign calls to social.near in the background. It draws tiny gas fees from the 0.25 NEAR allowance without opening a wallet pop-up.
- Protection against theft: Sending tokens or NFTs requires attaching a tiny deposit of NEAR (1 yoctoNEAR), as explained in NEAR token standards NEP-141 and NEP-171 (source: NEAR Docs, FT Standard). The app's function-call key can only call social.near and cannot attach even 1 yoctoNEAR, so a hacked app frontend cannot steal your 100 NEAR or your tokens (source: NEAR Docs, Access Keys).
Gas keys and post-quantum keys
To support high-throughput relayers, trading bots, and long-term cryptographic security, NEAR expanded its access-key model with two upgrades (source: NEAR Docs, Access Keys). Gas keys (NEP-611) support up to 1,024 parallel transaction slots, while post-quantum keys (ML-DSA-65, standardized by NIST as FIPS 204) protect accounts against quantum attacks.
First, gas keys (NEP-611, added in nearcore 2.13 at protocol version 86) let one account send many transactions at the same moment without them clashing, and keep bots from spending the account's main balance. Each regular key numbers its transactions one after another; that number is the nonce (source: NEAR Docs, Transaction Anatomy). Two transactions sent at the same instant on one standard key can therefore collide.
A gas key can be full-access or function-call, and it differs from a regular key in two ways (source: NEAR Docs, Access Keys).
- Prepaid gas balance: A new gas key starts empty, and you top it up from your main balance. Calls signed with a gas key pay all gas costs from the key's prepaid balance and get unspent gas refunds back into the key's balance, while any attached NEAR deposit still comes from the account's main balance.
- Up to 1,024 transactions at once: When you create a gas key, you choose how many transactions it can send in parallel, up to 1,024. Each slot keeps its own transaction count, so up to 1,024 workers can send calls at the same time on one key without collisions. Apps can also use gas keys to pay gas for their users, as explained in NEAR meta-transactions and gasless onboarding (source: NEAR Docs, Meta-Transactions).
Deleting a gas key burns any NEAR still on it to stop spam. To prevent mistakes, NEAR refuses to delete a gas key, or its account, if more than 1 NEAR would be burned (source: NEAR Docs, Access Keys).
Second, NEAR keys come in three types: ed25519 (the default), secp256k1 (the type Ethereum uses), and ML-DSA-65, a post-quantum type standardized as FIPS 204 with a 1,952-byte public key and 3,309-byte signature.
Example 3: Storing a large post-quantum key cheaply. A post-quantum key is about 60 times larger than a regular key (1,952 bytes versus 32 bytes for ed25519), so storing it in full on-chain would cost more in storage staking.
- Protocol hash optimization: Instead of storing all 1,952 bytes on-chain, NEAR stores a short 32-byte fingerprint of the key (source: NEAR Docs, Access Keys).
- What you get: A post-quantum key costs about the same to store as a regular 32-byte ed25519 key while protecting transaction signing against quantum attacks.
How to inspect, rotate, and manage your NEAR account keys safely
Because NEAR separates your account ID from your underlying keys, you can audit active app permissions and rotate keys at any time. In your wallet, you can check and update your keys at any time (source: NEAR Docs, Access Keys).
Step 1: Check your keys regularly. Open Authorized Apps or Access Keys in your wallet, or look up your account on NearBlocks, to see every key and gas key balance on your account.
Step 2: Check what an app is asking for. When you sign in to an app and the wallet Approve screen opens, make sure the wallet is asking for a limited key for that app's contract rather than a full-access key.
Step 3: Remove keys you no longer use. Click Revoke or Delete Key in your wallet to remove keys for old apps you no longer use, which costs about 0.41 Tgas (0.000041 NEAR at the minimum gas price) and frees the storage each key used (source: NEAR Docs, Gas).
Step 4: Rotate your full-access key if a device is exposed. On single-key chains, a leaked seed phrase forces you to abandon your address. On NEAR, you add a new full-access key in Security settings and then delete the old one, and your address stays the same (source: NEAR Docs, Account Model).
Step 5: Empty gas keys first. Before deleting a gas key, withdraw its balance to your main account so no remaining NEAR is burned (source: NEAR Docs, Access Keys).
If you need native NEAR to register a .near name or fund gas keys, review our guide on how to buy NEAR. Ready to trade NEAR on BloFin? Create a BloFin account, fund your balance using the BloFin deposit guide, and trade NEAR/USDT Spot or the NEARUSDT Perpetual.
Frequently asked questions
Can a parent account like yourname.near access or recover funds inside its sub-account app.yourname.near?
Parent accounts and sub-accounts on NEAR are separate on-chain entities once created, so yourname.near has zero built-in permission to spend funds, add keys, or change contracts inside app.yourname.near (source: NEAR Docs, Account ID). Only the keys added to the sub-account itself, when it was created or later, can control it.
How can I look up a specific post-quantum key on my NEAR account?
In your key list, a post-quantum key shows as a short 32-byte fingerprint rather than the full 1,952-byte key (source: NEAR Docs, Access Keys). To check one specific key, look it up with the full key and NEAR will match it for you, returning the key's permissions and transaction count.
How do gas keys handle transaction fees when an attached deposit fails on-chain?
Transactions signed with a NEP-611 gas key split costs across two balances. Execution gas is paid by the gas key's prepaid pool, while any attached token deposit is drawn from the main account balance (source: NEAR Docs, Access Keys). If the gas key has enough prepaid gas but the main account lacks the NEAR deposit when the call runs, the call fails. The gas used is charged to the gas key, and any unused gas goes back to it.
Why are 0s accounts created differently from other accounts?
A 0s address is calculated from the contract's code and starting data before the account exists on-chain (source: NEAR Docs, Account ID). Creating it this way makes NEAR check that the address really matches that code and data, and it makes the resulting contract and starting storage permanent.
How can a smart contract add a new key through its own code?
Once every key is removed from an account, nobody can add a new key to it from outside (source: NEAR Docs, Access Keys). The only way a locked account can ever add a new key is if a smart contract was deployed to that account before the keys were removed, and that contract has its own built-in way to add a new key.
Which NEAR operations still use ed25519 keys instead of post-quantum keys?
Post-quantum keys work for signing your own transactions across both full-access and function-call permissions, but validators' keys, block signatures, and implicit addresses still use ed25519 on NEAR mainnet today. You can protect the keys that sign your own transactions with ML-DSA-65 today, while the chain's consensus keys stay on ed25519 (source: NEAR Docs, Access Keys).
Researched and written by the BloFin Academy editorial team with AI-assisted drafting. Primary sources include the official NEAR Protocol documentation on Address / Account ID (named, implicit, 0x Ethereum-like, and 0s deterministic accounts), Access Keys (full-access, function-call, NEP-611 gas keys with 1,024 parallel slots, ML-DSA-65 FIPS 204 post-quantum keys, and locked accounts), Account Model, Architecture, Storage Staking, Gas (0.007 NEAR creation fee covering 770 bytes), Transaction Anatomy, Validating Recipient Accounts, FT Standard, Avoiding Token Loss, and Meta-Transactions, alongside Wikipedia's NEAR Protocol overview, ethereum.org developer documentation on accounts, and BloFin spot and perpetual contract specifications. All facts independently verified against cited documentation current as of October 2026.
This article is for informational and educational purposes only. It is not financial, investment, trading, or legal advice. Cryptocurrency can lose value. Managing access keys, creating or locking accounts, and trading on NEAR Protocol carries technical, key-loss, smart-contract, and market risks. Spot NEAR/USDT buys the token. A NEARUSDT Perpetual is a contract on the price. Do your own research. Consider your circumstances before using any protocol or trading any asset.
