Research/Education/Near/NEAR Gas and Storage Staking Explained: Tgas Pricing, Refunds, and 1 NEAR per 100 KB

NEAR Gas and Storage Staking Explained: Tgas Pricing, Refunds, and 1 NEAR per 100 KB

BloFin Academy11/12/2026

Every transaction on a blockchain costs the network two things: computing time to process it now, and disk space to store its result for as long as it stays on chain. Charging one flat transaction fee for both resources either underprices permanent ledger bloat or overcharges everyday token transfers. Charging for the two resources separately solves that problem by pairing a small fee for the computing with a refundable deposit for the storage.

On NEAR Protocol, the computing fee is called gas and is measured in Tgas, while the storage deposit is called storage staking, which locks 1 NEAR for every 100 KB of data and gives it back when the data is deleted (source: NEAR Docs, Gas).

Because a transaction can take several blocks to finish across shards, NEAR charges a higher prepaid gas price up front (0.001 NEAR per Tgas) and burns gas at the lower actual price (0.0001 NEAR per Tgas at the minimum). Sharding is explained in how NEAR works. One block later, you get back the gas you did not use and the difference between the two prices, though NEAR keeps up to 0.007 NEAR of that refund when a transaction creates a new account (source: NEAR Docs, Gas).

What are gas and storage staking on NEAR?

Gas and storage staking on NEAR are two separate token mechanisms that price network compute and ledger disk space independently. Gas pays a small, non-refundable fee for running actions inside a block, while storage staking locks refundable NEAR tokens based on the exact bytes an account stores on-chain (source: NEAR Docs, Storage).

Mechanism / parameterProtocol valueHow it works
Gas unit (1 Tgas)One trillion gas units (about 1 millisecond of computing)Measures processor, bandwidth, and storage input/output time; capped at 1,000 Tgas per chunk and per transaction
Minimum gas price floor0.0001 NEAR per TgasAdjusts up or down each block around half block capacity; cannot drop below 0.0001 NEAR
Minimum prepaid gas price0.001 NEAR per TgasDeducted upfront when a transaction is submitted; the difference versus the actual burn price is refunded one block later
Fixed account creation chargeUp to 0.007 NEAR (burned)Held back from the gas refund to bring the creation cost up to 0.007 NEAR; covers 770 bytes of free storage allowance
Storage staking rate1 NEAR per 100 KBLocked in the account balance as data is added; released back to the owner when on-chain bytes are deleted
Contract gas rebate split70% burned / 30% rebated30% of gas burned while a contract's own code runs is credited to the contract's account; the rest is burned (source: NEAR Docs, Gas)

Storage staking also affects NEAR staking rewards. NEAR locked for storage cannot be staked with a validator, so fewer tokens share the validator rewards (source: NEAR Docs, Storage).

Every action on NEAR needs some NEAR in your wallet to pay gas and storage deposits, so the first step is getting NEAR. On BloFin, buying on NEAR/USDT Spot (minimum order 0.1 NEAR) gives you real NEAR you can withdraw to your wallet. The NEARUSDT Perpetual (10 NEAR per contract, up to 75x leverage) lets you trade the price with USDT as margin, without holding NEAR. You can review maker and taker tiers on the BloFin fee schedule and follow our guide on how to buy NEAR.

How much gas common NEAR actions use

Every operation on NEAR costs a fixed, predictable number of gas units. That means the same transfer, key update, or contract upload always uses the same amount of gas, however busy the network is (source: NEAR Docs, Gas).

To make gas units easy to read, the protocol calibrates 1 Tgas (one trillion gas units, or 1 teragas) to equal about 1 millisecond of computing time. That 1 millisecond unit covers processor time along with network bandwidth and disk read and write work (source: NEAR Docs, Gas).

NEAR caps each shard chunk at 1,000 Tgas (about 1,000 milliseconds of compute), and any single transaction is likewise capped at 1,000 Tgas (source: NEAR Docs, Gas). A transaction can spend that gas budget inside one block or spread it across multiple internal execution messages, called receipts, over several blocks (source: NEAR Docs, Execution).

At the minimum gas price of 0.0001 NEAR per Tgas, everyday actions cost a tiny fraction of one NEAR (source: NEAR Docs, Gas).

NEAR actionFixed gas cost (Tgas)Fee in NEAR (at 0.0001 NEAR/Tgas floor)What it covers
Transfer NEAR0.45 Tgas0.000045 NEARCovers both send and execution steps across two blocks
Add key (full-access key)0.42 Tgas0.000042 NEARAdds a new key to an account; see NEAR named accounts and access keys
Delete key0.41 Tgas0.000041 NEARRemoves an existing access key from the account
Deploy contract (16 KB)2.65 Tgas0.000265 NEARAbout 0.58 Tgas plus 0.13 Tgas per KB of code; storage staking is charged separately
Contract callUp to 1,000 TgasUp to 0.1 NEARCaller specifies attached gas up to the 1,000 Tgas cap; unused gas is refunded
Create account7.92 Tgas (topped up to 0.007 NEAR)0.00707 NEARAbout 0.007 NEAR (0.00707 NEAR in NEAR's fee table), mostly the fixed account creation charge, not gas (source: NEAR Docs, Gas)

How the NEAR gas price changes

To turn fixed Tgas units into an actual token fee, NEAR multiplies the action's gas units by the network's live gas price. The price never goes below 0.0001 NEAR per Tgas and updates every block (source: NEAR Docs, Gas).

On networks such as Ethereum, users bid against each other with tips to get into the next block when traffic spikes, as explained in Ethereum gas explained (source: Ethereum.org, Gas). NEAR instead adjusts its single gas price step by step based on shard fullness. If the previous block was more than 50% full, the gas price rises by 1% for the next block. If the block was 50% full or less, the price drops by 1% until it reaches the 0.0001 NEAR floor (source: NEAR Docs, Gas).

Block explorers such as NearBlocks show the current gas price on the network. Wallet apps also read that live figure automatically when preparing a transaction (source: NEAR Docs, Gas).

Because gas units and per-block pricing are fixed by the protocol, you cannot pay a higher gas price or priority tip to speed up your transaction on NEAR. Attaching extra gas to a contract call never jumps the queue; the protocol simply refunds the unused gas after execution (source: NEAR Docs, Gas).

In practice, attaching far more gas than a contract call needs can slow down shard routing. NEAR limits how many cross-contract calls can enter a shard per chunk based on the attached gas budget, so over-attaching gas makes a shard queue look full early. To discourage this, protocol version 78 added a small fee on unused gas: 5% of it, or 1 Tgas, whichever is larger. The fee is set to zero for now while apps update (source: NEAR Docs, Gas).

Prepaid gas price vs burn price refunds and the 0.007 NEAR account creation charge

One of the most important mechanics in NEAR's fee model is that gas is prepaid upfront at one price when your transaction arrives and burned at a lower price when the action runs across shards. That gap is why almost every transaction sends a small refund back to your wallet one block later (source: NEAR Docs, Gas).

Because a transaction can spawn internal execution messages that travel across shards over multiple blocks, the live gas price could tick up by 1% per block before execution finishes. To make sure the transaction can finish, NEAR charges a prepaid gas price of at least 0.001 NEAR per Tgas, ten times the 0.0001 NEAR minimum (source: NEAR Docs, Gas).

  • Prepaid gas price: Taken from your wallet balance, or from a gas key, at 0.001 NEAR per Tgas, unless live network traffic pushes the block gas price higher. Gas keys are explained in NEAR meta-transactions and gasless onboarding.
  • Execution burn price: The actual rate charged while your action runs in the block (0.0001 NEAR per Tgas at the minimum), which is capped so it can never exceed the prepaid gas price you paid upfront.
  • Automatic next-block refund: One block after execution completes, the protocol refunds your account for both any unused gas units and the rate gap between the 0.001 NEAR prepaid gas price and the actual burn price (source: NEAR Docs, Gas).

Take a contract call with 100 Tgas attached, at the minimum gas price of 0.0001 NEAR per Tgas (source: NEAR Docs, Gas).

StepGasPrice per TgasNEAR
Prepaid upfront100 Tgas0.001 NEAR-0.100 NEAR
Used during execution50 Tgas0.0001 NEAR0.005 NEAR
Unused gas refund50 Tgas0.001 NEAR+0.050 NEAR
Price-difference refund50 Tgas0.0009 NEAR+0.045 NEAR
Final net cost50 Tgas0.0001 NEAR0.005 NEAR
  1. Prepaid: NEAR takes 0.1 NEAR when you send the call (100 Tgas at 0.001 NEAR per Tgas).
  2. Used: The call uses 50 Tgas at 0.0001 NEAR per Tgas, which costs 0.005 NEAR in total. Of the gas burned while the contract's own code runs, thirty percent is rebated to the contract and the rest is burned in full, as covered in NEAR fee burn and contract rebate.
  3. Unused gas refund: You get 0.05 NEAR back for the 50 Tgas the call did not use.
  4. Price-difference refund: You get 0.045 NEAR back because the 50 Tgas that ran was prepaid at 0.001 NEAR but charged at 0.0001 NEAR.
  5. What you pay: You get 0.095 NEAR back one block later, so the call costs 0.005 NEAR (source: NEAR Docs, Gas).

That upfront refund pool also pays for NEAR's 0.007 NEAR account creation charge. Every new account on NEAR can store up to 770 bytes of data without locking any tokens for storage. At the storage staking rate of 1 NEAR per 100 KB, those 770 bytes are worth about 0.0077 NEAR. Whenever a transaction creates a new account, for example by sending NEAR to a new address or creating a sub-account, NEAR keeps back enough of the refund to bring the total cost of the creation up to 0.007 NEAR and burns it. If the gas burned is already worth more than 0.007 NEAR, nothing is kept back (source: NEAR Docs, Gas).

How storage staking works at 1 NEAR per 100 KB

Whenever a smart contract or user account grows past its initial 770 bytes of free allowance, NEAR requires the account that owns that data to lock tokens through storage staking (also called state staking). The rate is 1 NEAR for every 100 KB (source: NEAR Docs, Storage).

Unlike execution gas, storage-staked NEAR is never burned or paid out to validators. Those tokens stay inside the account's own balance on the ledger, but they are locked so they cannot be transferred or staked with a validator while the data sits on-chain. Whenever a call adds data to a contract, NEAR checks that the contract has enough unlocked NEAR to cover it. If not, the call fails (source: NEAR Docs, Storage).

Here is what storage staking costs for an NFT collection of 1,000,000 tokens, where the contract stores which account owns each token (source: NEAR Docs, Storage).

  1. Label (5 bytes): Each record starts with a short label that takes 5 bytes.
  2. Auto-incrementing token ID (5 bytes): Token IDs from 0 to 999,999 average 5 ASCII bytes.
  3. Owner name (25 bytes): A typical .near account name averaging 25 characters takes 25 bytes, so each record takes about 35 bytes.
  4. Total: Storing 1,000,000 records of 35 bytes is 35,000,000 bytes (35 MB), which locks 350 NEAR in the contract's account. Storing the data more compactly can bring the deposit down to 250 to 330 NEAR (source: NEAR Docs, Storage).

Because incoming user calls can force a contract to lock its own NEAR for new bytes, unprotected contracts face a storage spam attack: a spammer pays tiny gas fees to post long messages until the contract's storage balance runs dry (source: NEAR Docs, Gas). To stop this, NEAR's token standards (NEP-141 for tokens and NEP-171 for NFTs) ask each holder to pay a small storage deposit for their own balance under a standard called NEP-145. See NEAR token standards NEP-141 and NEP-171 (source: NEAR Docs, FT Standard). On the wrapped NEAR, USDT, and USDC token contracts, that on-chain storage deposit is 0.00125 NEAR per holder slot.

How to get storage-staked NEAR back

Because storage staking locks tokens inside your account rather than burning them, any user or smart contract can release its storage-staked NEAR at any time by deleting on-chain data. Freeing unneeded state immediately lowers the account's locked balance requirement (source: NEAR Docs, Storage).

Archive nodes keep the full history, but NEAR validators only keep current data and discard old blocks after five epochs, or about 1.5 days (source: NEAR Docs, Epoch). When a smart contract deletes old records, or when a holder unregisters an empty token balance, validator nodes remove those deleted bytes from active state. The corresponding 1 NEAR per 100 KB becomes transferable again right away, minus the small execution gas fee of the delete call (source: NEAR Docs, Storage).

Contract developers can also lower the deposit by storing data in a compact format called Borsh and keeping large files, such as NFT images, off chain. Those files sit on networks like the InterPlanetary File System (IPFS), while the contract stores only a short fingerprint of each file on NEAR (source: NEAR Docs, Storage).

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

Why did my wallet deduct a larger NEAR amount upfront than the final gas fee?

When you make a contract call on NEAR, the protocol first reserves gas at the higher prepaid gas price rather than the lower minimum burn rate. That higher initial hold ensures your cross-shard execution messages still have enough prepaid gas if block fullness nudges the gas price upward across the next few blocks. Once the call finishes, the unspent amount and the rate difference return to your account in the following block (source: NEAR Docs, Gas).

Can I speed up a NEAR transaction by attaching more gas or paying a tip?

NEAR uses a single protocol gas price per block rather than a priority fee auction or validator tip market, and every action uses a fixed amount of gas. Attaching extra Tgas to a contract call only raises the temporary upfront balance hold without making your transaction confirm faster, and over-attaching gas can trigger the protocol's unspent-gas refund penalty once activated (source: NEAR Docs, Gas).

Why does sending NEAR to a brand-new implicit address cost more than a normal transfer?

Sending NEAR to an existing wallet only burns the tiny base transfer gas fee. When you send NEAR to an address that does not exist yet, or create a new account, NEAR has to set up a new account with its own free storage. To pay for that space, the protocol keeps up to 0.007 NEAR from the transaction's gas refund to bring the creation cost up to 0.007 NEAR (source: NEAR Docs, Gas).

How do I check how many bytes a NEAR smart contract is currently storing on-chain?

To see how much data an account stores, look it up on a block explorer such as NearBlocks, which shows its storage used in bytes. Multiplying that byte count by the protocol's storage rate of 1 NEAR per 100 KB shows the exact amount of NEAR locked for state on that account (source: NEAR Docs, Storage).

Do NEP-611 gas keys pay for storage staking or only execution gas?

Prepaid gas keys (NEP-611) are built specifically to pay execution gas fees from the key's own separate balance so apps can sponsor gasless user transactions, with any prepaid-versus-burn gas refunds returning to that gas key. By contrast, storage staking locks tokens inside the main balance of the account or smart contract that owns the on-chain state (source: NEAR Docs, Access Keys).

Is there a limit on how much on-chain data a contract can delete in one transaction to free staked NEAR?

Deleting records from a smart contract requires a contract call that burns execution gas for every key-value entry removed from the shard's database. Because a single transaction and shard chunk cannot burn more than the 1,000 Tgas per-chunk compute limit, contracts that need to clear hundreds of thousands of old records must split their cleanup calls across multiple transactions (source: NEAR Docs, Storage).


Researched and written by the BloFin Academy editorial team with AI-assisted drafting. Primary sources include the NEAR Protocol documentation on gas (execution fees, prepaid-versus-burn refunds, and account creation charges), storage staking (1 NEAR per 100 KB, NFT storage math, and Borsh serialization), transaction execution, epochs, access keys, and fungible token storage registration (NEP-145), alongside Ethereum Foundation documentation on gas markets. 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 smart contracts, managing storage deposits, and trading on NEAR Protocol carries technical, execution, 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.