0
0
Blockchain / Solidityprogramming~5 mins

Deploying to L2 networks in Blockchain / Solidity - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is an L2 network in blockchain?
An L2 (Layer 2) network is a secondary framework built on top of a main blockchain (Layer 1) to improve scalability and reduce transaction costs by processing transactions off the main chain.
Click to reveal answer
beginner
Why deploy smart contracts on L2 networks?
Deploying on L2 reduces gas fees, increases transaction speed, and helps scale applications without congesting the main blockchain.
Click to reveal answer
intermediate
Name two popular L2 solutions.
Optimistic Rollups and zk-Rollups are two popular L2 solutions that bundle transactions off-chain and submit proofs to the main chain.
Click to reveal answer
intermediate
What is a key step before deploying a contract to an L2 network?
You must configure your deployment tools (like Hardhat or Truffle) to connect to the L2 network's RPC endpoint and set the correct chain ID.
Click to reveal answer
intermediate
How does bridging assets relate to deploying on L2?
Bridging moves assets from the main chain to the L2 network so users can interact with contracts there using those assets.
Click to reveal answer
What is the main benefit of deploying smart contracts on L2 networks?
AMore complex contract code
BIncreased block size on Layer 1
CLower transaction fees and faster processing
DEliminates need for Layer 1 blockchain
Which of the following is an example of an L2 scaling solution?
Azk-Rollups
BProof of Work
CSharding
DMining
Before deploying to an L2 network, you should:
AUse the same settings as Layer 1
BConfigure your deployment tool with the L2 network's RPC and chain ID
CDisable all Layer 1 nodes
DOnly write contracts in a new language
What does bridging do in the context of L2 networks?
ATransfers assets from Layer 1 to Layer 2
BCreates new tokens on Layer 1
CDeletes contracts on Layer 2
DIncreases gas fees
Which statement about L2 networks is true?
AThey increase transaction fees
BThey replace Layer 1 blockchains completely
CThey slow down transaction speed
DThey help scale blockchain by processing transactions off the main chain
Explain the process and benefits of deploying smart contracts to an L2 network.
Think about how L2 helps with blockchain scaling and what you need to change in deployment.
You got /3 concepts.
    Describe how bridging assets works and why it is important for interacting with L2 networks.
    Consider how users get their tokens onto the L2 network.
    You got /3 concepts.