0%

On-chain vs Off-chain: What are the differences?

2022年10月21日 6分读完
新闻文章的横幅图片

What’s an on-chain transaction?

On-chain transaction refers to a transaction that is validated by all the nodes to ensure the transparency, security, and validity of the network’s public ledger. The nodes are formed by many devices, which are usually computers that collectively participate and safeguard the blockchain network. Once the transaction is verified, the record will be stored in different blocks with a timestamp and a unique hash to chain them together in a fixed order within the same network.

And, any add-on data will go through the whole procedure again before getting a new block attached on the chain. For validation, Proof-of-Work (PoW) is the oldest consensus mechanism that rewards miners for successfully cracking mathematical challenges. Meanwhile, Proof-of-Stake (PoS) is another consensus mechanism that requires participants to possess a certain amount of a native crypto token (through holding or staking) of the blockchain so that they have a chance to be the validators for a block of transactions. The typical examples for on-chain transactions are Bitcoin, Burstcoin and NEC, according to Investopedia.

What’re the advantages and disadvantages of on-chain transactions?

The benefits:

Security: The blockchain network encrypts a digital collection of data that can’t be altered once it’s verified and added to the network, which is collectively safeguarded by the nodes. In other words, on-chain transactions are designed to be irreversible to make sure that the data stored is immutable and tamper-proof.

Transparency: thanks to the distributed ledger, all transactions on the blockchain are simultaneously recorded and validated by different nodes, and each node has the same set of data. Put simply, everyone can trace back the transaction and can be notified if there are unusual activities in the network.

Decentralization: For conventional chains such as Bitcoin, there is no single party or authority to run the network other than a collective effort of the nodes, so the risk of an intermediary breaching trust or manipulating data is relatively little.

The drawbacks:

Inefficiency: Transaction speed is slow on blockchain. As the blockchain ecosystem grows, so does its transaction volume. It’s highly likely the processing time is slowed down since all nodes need to validate and replicate the transaction records, which also leads to network congestion. For example, Bitcoin, the largest cryptocurrency by market cap, needs at least 10 minutes to get a new block added onto the network, even though no intermediary is needed during the transaction.

High cost: With the increasing demand for blockchain transactions, the transaction fees are expected to climb as well. For example, Ethereum, the second largest cryptocurrency by market cap with smart contract functionality, has limited storage in each block that requires a higher gas fee to prioritize transactions to be included in the next block due to fierce competition. Therefore, transaction fees can be a major hurdle for the scale-up of blockchain transactions since users will be charged with increasing amounts of cryptocurrencies.

Eco-unfriendliness: As for the environmental aspect, blockchain requires a significant amount of energy, especially for PoW since miners need a lot of computational power and energy to compete with each other to solve a mathematical challenge before getting a reward. According to Joule journal, the average carbon intensity of electricity on the Bitcoin network increased by 17% in one year between 2020 and 2021.

What is an off-chain transaction?

In contrast, off-chain transactions don’t necessarily require the blockchain network to execute transactions, and the data isn’t publicly available. Or else, some off-chain transactions only need the blockchain network for integration after the completion of transactions elsewhere. No matter what, off-chain transactions need to seek individual users’ approvals for handling, validating and authenticating all transactions by a third party, such as PayPal (PYPL). The off-chain approach can even be used to perform coupon-based transactions.

In this case, the parties involved must purchase the coupons in return for the cryptocurrency. Simply put, users possess a private key to gain access to their wallets, which keep the value of the cryptocurrency, but the transferring ownership over the wallet is to someone else. As there are no miners to queue up for validating transactions, so off-chain transactions can speed up the transactions and also lower the transaction fees.

What’re the advantages and disadvantages of off-chain transactions?

The benefits:

Efficiency: As the transactions are executed off the chains, so no miners queue up to validate and record each and every transaction to speed up the whole process and avoid any network congestion, making the transactions faster or even instantaneous to process.

Low cost: Because of the absence of miners (for PoW) or validators (for PoS), off-chain transactions require little-to-no fees, which is extremely beneficial to handle large sums of cryptocurrency.

Greater anonymity: The data won’t be publicly broadcasted to the network, hence off-chain transactions offer more privacy.

The drawbacks:

Less transparency: Off-chain transactions do not follow the same protocol as their counterparts, so the parties involved can’t keep track of the changes on the chain and the transactions process solely depends on the third party, which opens up potential disputes in the future.

No permissionless: Similar to the above point. For off-chain transaction, users own a wallet key, but they don’t have the right of transferring the ownership of the wallet, nor having the right of validating and authenticating all the transactions on the chain, so everything depends on the third party or intermediary, who must have good credibility to avoid any disputes.

Relatively less security: Since immutability is one of the key features of blockchain, if the transaction is executed onto an off-chain network, it indicates that the data is relatively easy to be altered and the network is more vulnerable to fraudulent activity compared with on-chain transactions.

The takeaway:

As blockchain application is still in its nascent stage, it’s hard to say whether on-chain or off-chain transactions are better, but it’s interesting to see some buidlers try harder to adopt the good from both sides and create something new in between, like Chainlink, an oracle solution that enables off-chain data to be transferred to on-chain smart contracts, in the meantime, the nodes are compensated with the network’s native token, LINK, which is available on multiple credible exchanges including Poloniex. Again, it’s always important to DYOR and stay curious to explore the unknown world.

was originally published in The Poloniex blog on Medium, where people are continuing the conversation by highlighting and responding to this story.

热门新闻

How to Set Up and Use Trust Wallet for Binance Smart Chain
#Bitcoin#Bitcoins#Config+2 更多标签

How to Set Up and Use Trust Wallet for Binance Smart Chain

Your Essential Guide To Binance Leveraged Tokens

Your Essential Guide To Binance Leveraged Tokens

How to Sell Your Bitcoin Into Cash on Binance (2021 Update)
#Subscriptions

How to Sell Your Bitcoin Into Cash on Binance (2021 Update)

What is Grid Trading? (A Crypto-Futures Guide)

What is Grid Trading? (A Crypto-Futures Guide)

马上免费使用Cryptohopper进行交易!

免费使用——无需信用卡

开始吧
Cryptohopper appCryptohopper app

免责声明:Cryptohopper并非受监管机构。加密货币的机器人交易存在大量风险,过去的业绩表现并不能预示未来的结果。产品截图中展示的利润仅供参考,可能有所夸大。只有在您具备充足的知识或寻求了专业财务顾问的指导后,才应进行机器人交易。在任何情况下,Cryptohopper均不对任何人或实体因使用我们的软件进行交易而产生的全部或部分损失或损害,或任何直接、间接、特殊、后果性或附带的损害承担责任。请注意,Cryptohopper社交交易平台上的内容由Cryptohopper社区成员生成,并不代表Cryptohopper或其代表的建议或推荐。市场上展示的利润并不能预示未来的结果。使用Cryptohopper的服务即表示您承认并接受加密货币交易的固有风险,并同意免除Cryptohopper因您的任何责任或损失的责任。在使用我们的软件或进行任何交易活动之前,务必审阅并理解我们的服务条款和风险披露政策。请根据您的具体情况咨询法律和金融专业人士,获取个性化的建议。

©2017 - 2025 版权归属于Cryptohopper™ -版权所有。