New: Introducing the world's first secure touchscreen hardware wallets

Shop Now

Up your Web3 game

Ledger Academy Quests

  • Test your knowledge
  • Earn POK NFTs
Play now See all quests

Shanghai Upgrade Meaning

Nov 9, 2023 | Updated Nov 9, 2023
The Shanghai Upgrade is an upgrade on the Ethereum network that allows stakers and validators to unstake and withdraw their staked Ether.

What is the Shanghai Upgrade?

The Shanghai Capella Upgrade, also known as Shapella Upgrade, is an improvement on the Ethereum network that grants users access to their staked Ether. The upgrade took place in April 2023. It was first triggered in a public testnet called the Zhejiang testnet in February 2023 to simulate staking withdrawals.

This update was a planned hard fork. It implemented the Ethereum Improvement Proposal-4895 (EIP-4895), which encoded the new unstaking policy on the protocol. 

Why was the Shanghai Upgrade Implemented?

The Ethereum network completed the shift to a proof-of-stake (PoS) algorithm from its previous energy-intensive proof-of-work (PoW) in September 2022, in an upgrade known as The Merge. The Shanghai Upgrade marked the final step towards the shift to a PoS consensus mechanism. Now, instead of competing to complete complex mathematical equations, validators can stake Ether to participate in validating transactions, which .

The upgrade is primarily intended to boost liquidity for validators who want to withdraw their digital assets from the Beacon Chain. In the Beacon Chain users could stake 32 ETH to perform operations on the protocol, become validators, and earn rewards, but they could not withdraw their staked funds or rewards. The Shanghai Upgrade (EIP-4895) fixes this issue by adding the ability to withdraw or unstake funds. 

Another incentive behind the upgrade is to lower gas fees for developers and Ethereum’s layer-2 protocol users. The Shanghai Upgrade has also been dubbed “Push 0” or EIP-3855. The upgrade includes the Ethereum Improvement Protocol 3860, which brings technical improvements to the protocol’s smart contract feature. EIP-3860 limits the maximum size of the initcode (the code used by smart contract developers) to 49152 to ensure the initcode is fairly charged.

Genesis Block

A genesis block is the first ever block recorded on a blockchain. The block is also known as Block 0 or Block 1.

Full definition

Zero Confirmation Transaction

A zero confirmation transaction is any transaction that has not been recorded or validated on a blockchain.

Full definition

OP_Return

OP_Return is a special data storage function in a blockchain transaction. It allows users to include arbitrary data in transactions and transmit them to the entire network.

Full definition