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는 어떠한 경우에도 (a) 당사 소프트웨어와 관련된 거래로 인해, 그로 인해 또는 이와 관련하여 발생하는 손실 또는 손해의 전부 또는 일부 또는 (b) 직접, 간접, 특별, 결과적 또는 부수적 손해에 대해 개인 또는 단체에 대한 어떠한 책임도 지지 않습니다. Cryptohopper 소셜 트레이딩 플랫폼에서 제공되는 콘텐츠는 Cryptohopper 커뮤니티 회원이 생성한 것이며 Cryptohopper 또는 그것을 대신한 조언이나 추천으로 구성되지 않는다는 점에 유의하시기 바랍니다. 마켓플레이스에 표시된 수익은 향후 결과를 나타내지 않습니다. Cryptohopper의 서비스를 사용함으로써 귀하는 암호화폐 거래와 관련된 내재적 위험을 인정하고 수락하며 발생하는 모든 책임이나 손실로부터 Cryptohopper를 면책하는 데 동의합니다. 당사의 소프트웨어를 사용하거나 거래 활동에 참여하기 전에 당사의 서비스 약관 및 위험 공개 정책을 검토하고 이해하는 것이 필수적입니다. 특정 상황에 따른 맞춤형 조언은 법률 및 재무 전문가와 상담하시기 바랍니다.

©2017 - 2025 저작권: Cryptohopper™ - 판권 소유.