هذه الصفحة هي لأغراض إعلامية فقط. قد لا تتوفر بعض الخدمات والميزات في منطقتك.

What does onchain mean?

Onchain means that data or an operation has been written to the ledger of a particular blockchain, where the network's nodes verify and store it according to the protocol's rules. When people say a transfer is "already onchain," they mean it has been included in a block and has become a record that the chain's nodes verify together, with each node keeping its own copy.

"Onchain" always refers to one specific chain. The same token can be issued separately on several chains, and a transfer completed on Ethereum does not appear in the ledger of Bitcoin or any other blockchain. Records that are not written to a blockchain ledger are called offchain.

What is recorded onchain

Different blockchains do not store exactly the same things. Taking Ethereum as an example, there are three main kinds of onchain content:

Content What it is Example
Transactions Instructions that an account signs and submits to change the state of the network Sending ether (ETH) to another address, or calling a contract
Account state The result after transactions are executed The balance of each address, and the data stored in a contract
Contract code Smart contract programs deployed onchain The transfer and approval rules of a token contract

Bitcoin's ledger does not directly record the balance of each address. Instead, it records how many coins each transaction sent to whom; an address's balance is the total of the amounts it has received and not yet sent on. For how this is recorded, see digital asset.

How a transaction becomes an onchain record

On Ethereum, a transaction is first signed and broadcast, then included by a validator; after inclusion, it still has to wait for finality. The whole process can be divided into four steps:

  1. After the user signs and submits a transaction, the wallet or node computes a transaction hash from the signed transaction, which is used to look the transaction up; see transaction hash.
  2. The transaction is broadcast to the network and first enters the pool of pending transactions (the mempool).
  3. A validator packs the transaction into a block and executes it. If an included transaction fails during execution, its state changes are reverted, but the transaction is still recorded in the block, and the fees already consumed are still charged.
  4. Roughly every 6.4 minutes, the protocol selects a block as a checkpoint, on which validators vote collectively to confirm the history before it. Once the votes reach the threshold, the checkpoint is first marked "justified" and then "finalized"; for details, see finality. When nodes switch to following a different branch and replace existing blocks, this is called a chain reorganization. Once the block containing a transaction is part of finalized history, under normal conditions it will no longer be replaced by a chain reorganization; to overturn it, an attacker would have to lose at least one third of all staked ETH.

A transaction that a wallet shows as "submitted" or "pending" is still at step 2: it is not yet onchain and has to wait until a validator selects it and packs it into a block. For how confirmations are counted once a transaction is in a block, see block confirmation.

Writing data onchain costs fees. On Ethereum, both transactions and storage consume gas, and modifying data stored in a contract is relatively expensive.

Three features of onchain records: public, independently verifiable, hard to tamper with

Onchain records have three characteristics:

  • Public: On public blockchains such as Bitcoin and Ethereum, anyone can read transactions and state. The network needs participants to be able to read the data so that they can verify state changes independently. Data written into a transaction stays in the block history for good, so once information such as an ID number or a private key is written onchain, anyone can read it.
  • Independently verifiable: Every full node checks each state change against the same set of rules. Users can run their own node to check for themselves instead of having to trust what any single institution says.
  • Hard to tamper with: Once a record has been confirmed by subsequent blocks, changing it usually requires controlling a considerable share of the network's mining computing power (hashrate) or of its staked assets; for the specific conditions, see finality.

Four things onchain records cannot prove: identity, outside information, token rights, offchain data

An onchain record proves "what this chain recorded according to its rules." On its own, it cannot prove any of the following:

  • Who is behind an address: The chain shows only addresses, not identities. One person can control multiple addresses, and an address may also be controlled by a contract program. The Bitcoin white paper says that transactions themselves are public, but the public keys used to receive payments are not linked to their holders' identities: outsiders can see that someone is sending an amount to someone else, but not whom the transaction involves. The white paper also cautions that multiple addresses may be linked to the same owner, and once the identity behind one address is identified, other transactions associated with it may be traced as well.
  • Whether external information is true: Smart contracts cannot by themselves read information from outside the blockchain, so data such as exchange rates or match results has to be written onchain by an oracle. An onchain record shows only that the oracle submitted this data; whether the data itself is true depends on the oracle and its data sources. If the data is wrong, contracts that rely on it will also execute on the wrong data.
  • The rights behind a token: An onchain balance shows how many tokens you hold, but the stock, debt claims or rights to physical assets that a token claims to represent depend on offchain legal arrangements; see tokenized stocks.
  • Raw data stored offchain: Because onchain storage is relatively expensive, some applications write only a hash of the data onchain and keep the raw data offchain. The onchain hash can prove whether the data has been altered, provided that someone still keeps the raw data.

So when you see a claim that something is "onchain," first ask: what exactly was written onchain, on which chain, and which part can the onchain record actually prove?

FAQ

Is something safe once it's onchain?

Being onchain only means the record has been accepted by the network. It does not mean the counterparty can be trusted, nor that the contract is free of vulnerabilities. A transaction sent to a scam address is recorded onchain just as faithfully, and it is very hard to reverse.

Do trades and transfers in a trading platform account count as onchain?

Usually not. Buying and selling in a trading platform account, or making an internal transfer to another user of the same platform, only changes the platform's own ledger. An onchain transaction occurs only when you deposit from an external address or withdraw assets to an external address. For the difference between a platform's ledger and onchain records, see offchain.

Do transactions on layer 2 networks count as onchain?

It depends on which chain you mean. Ethereum's documentation classifies layer 2 networks as offchain scaling solutions: transactions are processed outside Ethereum mainnet, and layer 2 networks such as rollups then submit transaction data or proofs to mainnet. On the layer 2 network's ledger, a transaction is an onchain record; until it is submitted to Ethereum mainnet, however, it is not yet a record on Ethereum mainnet. See offchain.

Learn more about offchain, blockchain, smart contracts, transaction hashes, block explorers, and cryptocurrency, or return to the cryptocurrency glossary.

References

إخلاء المسؤولية
يُقدَّم هذا المحتوى لأغراضٍ إعلامية بهدف التوضيح فقط، وقد يتضمَّن إشارة لمنتجاتٍ أو خدماتٍ غير مُتاحة في منطقتك الجغرافية. لا يُقصَد به تقديم (1) مشورة استثماريَّة أو توصية استثماريَّة، أو (2) عرضًا أو التماسًا لشراء العملات/الأصول الرقمية أو بيعها أو الاحتفاظ بها، أو (3) مشورة ماليَّة أو محاسبيَّة أو قانونيَّة أو ضريبيَّة. تنطوي عمليات الاحتفاظ بالعملات الرقمية/الأصول الرقمية، بما فيها العملات المستقرة، على درجة عالية من المخاطرة، ويُمكِن أن تشهد تقلّبًا كبيرًا في قيمتها. لذا، ينبغي التفكير جيدًا فيما إذا كان تداوُل الأصول/العملات الرقمية أو الاحتفاظ بها مناسبًا لك حسب وضعك المالي. ويُرجى استشارة خبير الشؤون القانونيَّة أو الضريبيَّة أو الاستثماريَّة الذي تتعامَل معه بخصوص أي أسئلة متعلِّقة بظروفك الخاصَّة. المعلومات (بما في ذلك بيانات السوق والمعلومات الإحصائية، إن وجدت) الواردة في هذا المنشور مُقدَّمة لأغراض معلوماتية فقط. رغم اتخاذ جميع التدابير المعقولة لضمان الدقة عند إعداد هذه البيانات والرسوم البيانية، فإننا لا نتحمل أي مسؤولية عن أي أخطاء في الحقائق أو أي معلومات محذوفة واردة فيها.

الأصول الرقمية عرضة للتقلبات وغير مؤمَّن عليها. هذه ليست نصيحة مالية أو استثمارية. ليست جميع المنتجات والخدمات متاحة في جميع المناطق. تُطبَّق الاستثناءات والشروط والأحكام.

© 2026 OKX. يجوز إعادة نشر هذه المقالة أو توزيعها بالكامل، أو استخدام مقتطفات منها لا تتجاوز 100 كلمة، بشرط أن يكون هذا الاستخدام غير تجاري. ويتعيَّن أيضًا في أي عملية إعادة إنتاج أو توزيع للمقال بأكمله أن يُذكر وضوحًا: «تعود ملكية هذا المقال الفكرية لصالح © 2026 OKX وتُستخدَم بموجب إذن». ويجب أن تشير المقتطفات المسموح بها إلى اسم المقال وتتضمَّن الإسناد المرجعي، على سبيل المثال «اسم المقال، [اسم المؤلف إن وجد]، © 2026 OKX». قد يتضمَّن بعض هذا المحتوى موادّ أُنتِجَت أو جرى إعدادها بمساعدة أدوات الذكاء الاصطناعي (AI). لا يجوز إنتاج أي أعمال مشتقة من هذه المقالة أو استخدامها بطريقة أخرى.

المقالات ذات الصلة

عرض المزيد
crypto-glossary-cover-v5.contentful

Crypto Glossary A–Z

Explore key crypto, blockchain, and trading terms through concise definitions, organized alphabetically for quick reference. [A](#a) · [B](#b) · [C](#c) · [D](#d) · [E](#e) · [F](#f) · [G](#g) · [H](#
‏3 ديسمبر 2026
12-03-glossary-thumnail/zero-knowledge-rollup

What is a ZK rollup?

**A zero-knowledge rollup (ZK rollup) is a type of [rollup](/learn/what-is-a-rollup): it hands the results of a batch of transactions to the main chain together with a proof, and the main chain accept
‏3 ديسمبر 2026
12-03-glossary-thumnail/zero-knowledge-proof

What is a zero-knowledge proof?

**A zero-knowledge proof (ZKP) lets someone convince another party that a statement is true without revealing any information beyond the statement itself.** The party that submits the proof is called
‏3 ديسمبر 2026
12-03-glossary-thumnail/validator

What is a validator?

**A validator is a participant in a [proof-of-stake](/learn/what-is-proof-of-stake) blockchain that proposes new blocks and votes on other blocks.** It must first [stake](/learn/what-is-staking) the a
‏3 ديسمبر 2026
12-03-glossary-thumnail/unspent-transaction-output-utxo

What is an unspent transaction output (UTXO)?

**An unspent transaction output (UTXO) is an amount of bitcoin (BTC) that a transaction has paid to someone and that has not yet been spent again; each record states the amount and the conditions for
‏3 ديسمبر 2026
what-is-blockchain

What is transactions per second (TPS)?

**Transactions per second (TPS) is a figure that measures how many transactions a [blockchain](/learn/what-is-a-blockchain) can process, or actually processes, each second. It is also called throughpu
‏3 ديسمبر 2026
عرض المزيد