Research/Education/Near/NEAR Token Standards Explained: NEP-141, NEP-145 Storage, and NEP-171 NFTs

NEAR Token Standards Explained: NEP-141, NEP-145 Storage, and NEP-171 NFTs

BloFin Academy11/12/2026

Since November 2015, smart-contract blockchains have used shared token rules so any wallet or exchange can read balances and send custom coins without custom code for each asset (source: ethereum.org, ERC-20). Yet older two-step standards still force you to sign a separate spending approval before an app can take your deposit.

On NEAR Protocol, network-wide contract rules are published as NEAR Enhancement Proposals (NEPs). Rather than copying single-chain templates, NEAR built NEP-141 for fungible tokens and NEP-145 for storage deposits (source: NEAR Docs, FT Standard). It also added NEP-171 for non-fungible tokens (NFTs) around its sharded runtime (source: NEAR Docs, NFT Standard).

Together, these standards store your balance inside each token's contract, send tokens and an app instruction in one step, and make your wallet ask you to confirm each transfer with a 1 yoctoNEAR deposit (source: GitHub, NEP-141).

What are NEAR token standards NEP-141 and NEP-171?

NEAR token standards are NEAR Enhancement Proposal (NEP) rules that define the smart-contract functions, storage deposits, and display fields for fungible tokens (NEP-141) and non-fungible tokens (NEP-171). Following those shared rules lets every wallet and exchange on NEAR handle custom tokens the same way (source: NEAR Docs, FT Standard).

Unlike the native NEAR coin (whose balance sits right on your account record in the chain state), custom fungible tokens and non-fungible tokens (NFTs) are not stored inside your personal account. Instead, each token lives inside its own smart contract. That contract works as an on-chain bookkeeper that maps account IDs (like yourname.near) to balances or token IDs and handles transfers internally (source: NEAR Docs, FT Standard).

As explained in NEAR named accounts and access keys, every token contract lives at its own NEAR account ID. For instance, the official Tether USD contract lives at usdt.tether-token.near (source: NEAR Docs, Account Validation). For a fungible token contract to work across the NEAR ecosystem and DeFi, it must follow both NEP-141 (core transfer and balance rules) and NEP-148 (token metadata).

  • Checking supply and balances: Any wallet can ask the contract for the token's total supply or look up any account's exact balance.
  • Sending tokens: A standard transfer sends tokens to another account, with an optional note. A transfer-and-call sends tokens to an app and tells it what to do with them in one transaction, and any unused tokens come back.
  • Token details (NEP-148): Sets what wallets display, such as the name, symbol (like USDT), and the number of decimals. For example, 6 decimals turns 1,000,000 raw units into 1.000000 USDT (source: NEAR Docs, FT Standard).

To trade NEAR itself, BloFin has a spot market and a perpetual futures market. You can buy or sell NEAR on NEAR/USDT Spot (minimum order 0.1 NEAR, price step 0.001 USDT). You can also trade price swings with margin on the NEARUSDT Perpetual contract (10 NEAR per contract, up to 75x leverage). Check maker and taker rates on the BloFin fee schedule.

How transfer-and-call works, and why every transfer costs 1 yoctoNEAR

NEP-141 replaces the two-step approval with one transaction, called transfer-and-call, that sends tokens to an app and tells it what to do with them. If the receiving contract does not use all of the sent tokens, a callback refunds the rest (source: NEAR Docs, FT Standard).

On non-sharded chains that use Ethereum smart contracts (ERC-20), putting a token into a decentralized exchange (DEX) or lending pool takes two separate calls. First you approve the app to spend your tokens, and then the app moves the tokens from your wallet. On NEAR, contracts on different shards talk through messages that arrive in later blocks, so a two-step approval would add delays and leave open allowances behind. Sharding is explained in how NEAR works.

NEP-141 fixes this by turning token deposits into a three-step pipeline inside one transaction. Suppose you swap 100 USDT on a decentralized exchange pool.

  1. You send the tokens: Your wallet sends 100 USDT to the exchange's contract along with an instruction, such as swapping for NEAR, and attaches 1 yoctoNEAR. The token contract subtracts the amount from your balance and adds it to the exchange's contract.
  2. The app runs your swap: The exchange's contract carries out the swap and reports how many tokens it did not use.
  3. Unused tokens come back: The token contract checks what the app did not use and returns those leftover tokens to you (source: NEAR Docs, FT Standard).

Why NEP-141 and NEP-171 require a 1 yoctoNEAR deposit

Every token transfer, including transfer-and-call, must carry 1 yoctoNEAR, the smallest unit of NEAR (source: NEAR Docs, FT Standard).

When you log in to a NEAR app, it gets a limited function-call access key that can act for you but cannot send any NEAR, as covered in NEAR scams and fake tokens. A function-call key is blocked by protocol rules from attaching any native NEAR coins to a call (source: NEAR Docs, Access Keys).

Because every token or NFT transfer must carry 1 yoctoNEAR, an app's limited key can never move your tokens in the background. Attaching 1 yoctoNEAR forces your wallet to sign the call with a full-access key, which opens a confirmation pop-up on your screen (source: GitHub, NEP-141).

Why tokens on NEAR need a storage deposit

Because NEAR requires every smart contract to lock refundable NEAR for the disk space it uses on validator servers, NEP-145 sets a standard way for token contracts to ask users to pay for their own storage (source: NEAR Docs, FT Standard).

Storage on NEAR costs 1 NEAR per 100 KB (0.00001 NEAR per byte), as explained in NEAR gas and storage staking (source: NEAR Docs, Storage Staking). Each time a new account holds a balance on a NEP-141 token contract, that contract's storage grows. If a token contract paid for every user's slot itself, a spammer could register thousands of empty accounts and drain the contract's staked NEAR reserve.

To stop storage spam, most NEP-141 contracts implement the five functions of NEP-145, which is strongly recommended across the ecosystem (source: NEAR Docs, FT Standard).

  • Deposit needed: Shows the smallest and largest deposit needed to register an account on the contract.
  • Check your deposit: Shows how much storage deposit an account has paid, or nothing if it is not registered.
  • Register: Locks the NEAR deposit and registers the account on the token contract. Either the account owner or an outside sender (such as an exchange or wallet) can pay this deposit to register a receiver before sending tokens.
  • Withdraw extra: Takes back any deposit above the minimum required amount; only the account owner can use it.
  • Unregister: Removes your record from the token contract and returns your locked NEAR deposit to your wallet; only the account owner can use it (source: NEAR Docs, FT Standard).

NEP-171 NFTs, NEP-177 metadata, and NEP-178 approvals

For digital art, game items, and event tickets, NEAR splits non-fungible token rules across three core standards: NEP-171 (core NFT transfers), NEP-177 (NFT metadata), and NEP-178 (approval management). Together they let wallets and marketplaces read and trade unique items safely (source: NEAR Docs, NFT Standard).

Just like NEP-141 coins, NFTs on NEAR live inside their issuing NFT smart contract rather than inside your wallet. The NFT contract records who owns each item, and a separate marketplace contract sells it. Three standards make that work, and you can read more in NEAR NFTs and gaming.

  1. NFT basics (NEP-171): Lets anyone see who owns an NFT, and lets the owner send it (with 1 yoctoNEAR attached). It also lets you send an NFT to an app, such as a marketplace, with an instruction in one step.
  2. NFT details (NEP-177): Sets what wallets show for a collection (name, symbol, and icon) and for each item (title, description, image, and number of copies).
  3. NEP-178 (NFT approval management): Lets an NFT owner authorize another account (such as a marketplace contract) to transfer a specific token on their behalf. You can give a marketplace permission, check it, or take it back; taking it back costs 1 yoctoNEAR (source: NEAR Docs, NFT Standard).

Beyond those three specs, collections also use NEP-181 (enumeration functions to list owned NFTs) (source: GitHub, NEP-181) and NEP-199 (payout functions for creator royalties) (source: GitHub, NEP-199).

How NEAR token standards compare with Ethereum ERC-20 and ERC-721

NEAR's standards do the same jobs as Ethereum's ERC-20, ERC-721, and ERC-4626, but they are adapted for shards and refundable storage. For how NFTs work on Ethereum, see NFTs on Ethereum (source: Ethereum.org, ERC-721).

FeatureNEAR (NEP)Ethereum (ERC)
Fungible tokenNEP-141 and NEP-148ERC-20
Contract depositOne transactionTwo steps: approve, then transfer
Storage costNEP-145 refundable depositGas fee, not refunded
NFT coreNEP-171, NEP-177, and NEP-178ERC-721
Yield vaultsNEP-621ERC-4626
Key guard1 yoctoNEAR full-access promptOne private key controls the account

Unlike ERC-20, where you approve an app and then it moves your tokens, NEP-141 does both in one transfer-and-call. It also prices account storage directly under NEP-145 (1 NEAR per 100 KB, reclaimable when you unregister). Likewise, NEAR NFTs give marketplaces permission one item at a time, where ERC-721 often approves a whole collection.

When you send NEP-141 tokens using the steps in how to send and receive NEAR, your wallet checks whether the receiver is already registered on that token contract. If the receiver has never held that token before, your wallet batches a NEP-145 storage deposit ahead of the transfer so the send succeeds (source: NEAR Docs, Account Validation).

NEP-621 tokenized vaults

Building on NEP-141, NEP-621 defines NEAR's tokenized vault standard. It adapts Ethereum's ERC-4626 yield-vault model to NEAR's asynchronous runtime (source: NEAR Docs, Tokenized Vaults).

A NEP-621 vault takes deposits of a token, such as a stablecoin, and gives you shares in the vault in return, in proportion to what you put in. When a holder redeems, the vault burns those shares and sends back the underlying coin. Because the vault shares are also NEP-141 fungible tokens, you can trade them on DEXs or use them as collateral across DeFi apps. You deposit into a NEP-621 vault with a transfer-and-call, and the vault issues your shares as soon as the tokens arrive (source: NEAR Docs, Tokenized Vaults).

Looking to trade NEAR tokens on BloFin? To get started, you'll need to first create a BloFin account, fund your account with cryptocurrency, and navigate to the NEAR/USDT Spot trading page or the NEARUSDT Perpetual page.

Frequently asked questions

How do I register a recipient account before sending a NEP-141 token?

Every NEP-141 contract stores each holder's balance in its own record on chain. On a contract that follows NEP-145, a recipient account must be registered on that token contract before a transfer can credit them. If the recipient has never held that token, your wallet can pay their storage deposit for you right before the transfer (source: NEAR Docs, FT Standard).

What happens to my tokens if an app uses only part of them, or fails?

When you send tokens to an app with a transfer-and-call, the app carries out your instruction and reports how many tokens it did not use. In the next block, the token contract reads that answer, or sees that the app failed, and returns the unspent tokens to your account as long as your account still exists on chain (source: NEAR Docs, FT Standard).

How do NEP-171 NFT transfer callbacks differ from NEP-141 fungible callbacks?

In NEP-141, a token deposit can be partly used, for example in a swap with a price limit, so the app reports how many tokens to return (source: NEAR Docs, FT Standard). An NFT under NEP-171 cannot be split, so the app simply answers keep or return. If the app says return, the NFT goes back to you, and if it says keep, the app keeps the NFT (source: NEAR Docs, NFT Standard).

How does the approval ID counter in NEP-178 prevent old marketplace replay attacks?

Under NEP-178, each time you approve a marketplace to list an item, the approval gets a new, higher number. If the NFT is sold to a buyer and later sent back to you, an old marketplace contract holding an earlier approval number cannot move the NFT again. That rule blocks stale listings from firing later (source: GitHub, NEP-178).

How do NEP-621 tokenized vaults stop share-price inflation attacks on NEAR?

In a NEP-621 vault, if an attacker deposits a tiny first amount and then donates NEP-141 tokens straight to the vault to spike the exchange rate per share, later depositors could lose value to rounding. Vault builders guard against that attack by seeding a meaningful first deposit or adding a virtual decimal offset to issued shares, and by rounding share minting and asset payouts in the vault's favor (source: NEAR Docs, Tokenized Vaults).

What do NEP-181 and NEP-199 add to NEAR NFT contracts?

While NEP-171 handles core NFT transfers, NEP-181 (NFT Enumeration) lets wallets list every NFT in a collection and every NFT an account owns inside their gallery tab (source: GitHub, NEP-181). NEP-199 (NFT Payout) lets marketplaces work out and pay creator royalties across accounts in one step when an NFT sells (source: GitHub, NEP-199).


Researched and written by the BloFin Academy editorial team with AI-assisted drafting. Primary sources include the official NEAR Protocol documentation on the Fungible Token Standard (NEP-141 core methods, NEP-145 storage management, and NEP-148 metadata), the Non-Fungible Token Standard (NEP-171 core methods, NEP-177 metadata, and NEP-178 approval management), Tokenized Vaults (NEP-621), Validating Recipient Accounts, Access Keys, and Storage Staking, alongside the NEP-141, NEP-178, NEP-181, and NEP-199 specifications on GitHub, Ethereum.org ERC-20 and ERC-721 documentation, 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. Interacting with NEP-141 fungible tokens, NEP-171 NFTs, NEP-621 vaults, and smart contracts on NEAR Protocol carries technical, 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.