Questions tagged [layer-2]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
5 views

What is the current state of zkEVM development?

What is the current state of zkEVM? That is - a general-purpose (not specialized like Loopring or Immutable), EVM-compatible, Solidity-compatible zk-rollup layer 2. To my knowledge they are still ...
user avatar
0 votes
1 answer
15 views

Transferring weth from my contract to an other wallet address on polygon without using bridges

I have a requirement where we are building a platform that receives funds on Ethereum L1 and sends that fund back to the same address on polygon L2. I know bridges are there to transfer funds from l1 ...
user avatar
0 votes
0 answers
10 views

What will data availability sampling mean for Dapp developers?

I have heard a lot recently about data availability sampling that will be implemented on Ethereum 2 in the near future. It seems like a great idea to help with the scalability of the network, but I ...
user avatar
  • 101
0 votes
0 answers
8 views

What is the difference between polygon-ethereum relationship and solana-ethereum?

I understand that side chain has some kinda 2 way connection with its mainnet. But for this connection is it inheriting something more or What is actually happening? I mean can we distinguish the ...
user avatar
0 votes
1 answer
19 views

Sending message/instruction from a governance system on Arbitrum to mint tokens on mainnet using Gnosis Zodiac Bridge

I am working with a DAO that has their governance/voting system on Arbitrum, and their Gnosis Safe treasury wallet on mainnet. The Gnosis Safe on mainnet contains minting keys to mint their native ...
user avatar
  • 1
0 votes
0 answers
8 views

How do you create a ZkSync account?

I have a few questions regarding the creation of ZkSync account. More specifically, I want to find out the order in which the creation process takes. An Ethereum provider is created: const ...
user avatar
  • 587
0 votes
3 answers
34 views

call a view function from a L1 contract in a L2 contract

I'm wondering is there a way to read a view function that is deployed on L1(Ethereum) on L2(e.g. Optimism) and vice-versa pragma solidity ^0.8.0; // pretend this is on L1 contract L1_contract { ...
user avatar
0 votes
0 answers
29 views

Does a Rollup transaction need the parameter 'nonce'?

Recently I am learning Rollups, and one thing makes me confused is that, Does the compressed transaction in a batch need the parameter nonce? Here in on-chain-scaling-to-potentially-500-tx-sec-through-...
user avatar
0 votes
0 answers
20 views

What are the differences between the Opera’s evm on the Fantom blockchain and the Ethereum’s mainnet blockchain ? Or how to deploy a contract at 0x0?

Opera is the Ethereum compatibility layer for the Fantom blockchain. Their team is claiming it’s a copy of the original go Ethereum implementation without the originally planned enhancements. However, ...
user avatar
1 vote
1 answer
333 views

Is Polygon (Matic) a layer-2 or a sidechain?

People are calling Polygon both a layer-2 and a sidechain even though these are 2 different concepts. Which one is it?
user avatar
0 votes
1 answer
63 views

Questions regarding Polygon Network Mapping

In order to map (to Ethereum) ERC721 Tokens that have been minted with my Smart Contract deployed on the Polygon Network: Do I need to deploy my Smart Contract on both networks (Polygon and Ethereum)?...
user avatar
  • 281
0 votes
0 answers
65 views

Sending WETHs instead of MATIC Tokens in Function Calls on Polygon Network

I had initially developed a Smart Contract for the Ethereum Blockchain. Within my Dapp, I would have called a mint function found in my Smart Contract using the function below. This function would ...
user avatar
  • 281
1 vote
1 answer
44 views

Can you use Ethereum wallet to receive/send tokens of layer 2 blockchains?

If I create a wallet for Ethereum blockchain, can I use the same wallet (and accounts) for layer 2 Ethereum based blockchains (like Polygon and MATIC coin) as well? Side note: I've created a wallet ...
user avatar
  • 118
0 votes
0 answers
15 views

Developing Consensus layer for thesis

im writing my Bachelor Thesis in Computer Science about Blockchain and Ethereium in general. My aim is to benchmark/analyze the Transactions per second by creating private Ethereum. In order to ...
user avatar
  • 1
1 vote
0 answers
45 views

zk-rollups library

Is there already a zk-rollups library that can execute contract code? I read about zkSync, Aztec, STARKWARE, polygon etc. But they are only for token transfert and none execute contract code.
user avatar
0 votes
0 answers
103 views

What is a layer-1 and layer-2 bridge?

I understand that Ethereum mainnet is layer-1, and an ERC-20 token like Polygon to be a layer-2. But what is a bridge between these layers? Practically, in code, and financially? Especially interested ...
user avatar
0 votes
0 answers
27 views

Creating an Ethereum sidechain?

I'm doing some research on Ethereum sidechains like Axie Infinity Ronin. What I'm trying to understand is how someone goes about creating a sidechain and what does it take? Does this start as an ...
user avatar
0 votes
0 answers
10 views

Do you think blockchain technology viable with very fragile and volatile gas fee?

This is not a technical question and I am wondering about the future of blockchain technology from a professional's perspective. Polygon being a layer 2 solution, it's gas fee has increased by 16 ...
user avatar
2 votes
1 answer
23 views

Is ETH 2.0 going to have many L2 layers running with it?

Is it true that ETH 2.0 will just have many L2 layers running with it, such as Polygon, so ETH 2.0 needs these L2 layers These L2 layers are not going to go away just because of ETH 2.0 rolling out ?...
user avatar
0 votes
1 answer
53 views

How is circuit integrity of ZK-rollups checked by the L1 contract?

TL;DR: what prevents an evil party forge a new evil operation (say mint 100 ETH for some account) and prove that the evil operation is executed correctly to the Layer 1 verifier contract? I am ...
user avatar
1 vote
0 answers
51 views

Contract migration from Ethereum to L2

I am trying to figure out is it posible and how to migrate contracts from Ethereum main net to other L2. So here what I found: Migrating from contract in Solidity from Ethereum to Optimism is ...
user avatar
1 vote
0 answers
53 views

Arbitrum and Ethereum Interoperability

I have a contract deployed on Ethereum that have a public view that returns one data i need that data on a contract on Arbitrum I have seen the documentation of arbitrum and I have seen that it is ...
user avatar
0 votes
1 answer
65 views

Wouldn't bridging between L1 and L2 result in incongruence when token is burnt on L2 but still exists on L1?

Most bridges between L1 and L2 (let's say between Ethereum and Polygon), particularly with NFT, perform their bridging through the following: From L1 to L2: Hold NFT token in escrow by the bridge on ...
user avatar
  • 255
0 votes
1 answer
23 views

layer 2 solution best option

Ive got a client who have his own fork of an evm based chain and is looking for a layer 2 solution for their chain. Open source and easy to use and integrate on their current existing evm based chain, ...
user avatar
4 votes
2 answers
284 views

how does optimistic rollup work?

I am mostly interested in why 7-day fraudulent proof checks exist. Let's say on L1, I got 10 ETH and I deposited it on L2 as WETH. Now, 10 ETH is locked on L1's bridge contract and 10 WETH is on L2 on ...
user avatar
1 vote
0 answers
36 views

Would transactions be committed back to the mainnet by sidechains?

When an L2 solution such as a sidechain like Polygon or xDai commits back to the Ethereum mainnet at every of its intervals, do the transactions, storage in the smart contracts, and everything that ...
user avatar
  • 255
0 votes
1 answer
43 views

Layer 2 how to read tx data

How would i be able to read TX data from layer 2, same as layer 1? From my understanding geth/erigon cant see this data. Would i need to run a validator node?
user avatar
4 votes
1 answer
1k views

Does smart contracts "sync" between Polygon and Ethereum?

I'm deploying my ERC721 application on the Ethereum network and, of course, fees are a concern. I'm considering giving my customers the option to execute the contract calls on Polygon as well for ...
user avatar
  • 878
5 votes
0 answers
57 views

Is there a zk-rollup proof explorer?

With the rise of various L2 solutions I started wondering whether it's possible to inspect the transaction proofs which are sent to L1. Is there a tool with an interface a'la block explorer, but ...
user avatar
  • 76
1 vote
0 answers
43 views

Who and how writes L2 transaction to L1?

I read the document of Optimistic, I understood the L2 nodes send the transaction together to L1. However, I couldn't understand how L2 nodes pay the transaction fee. https://community.optimism.io/...
user avatar
  • 237
1 vote
0 answers
82 views

What is the risk of transferring your funds to the Matic mainnet?

Fees on the Matic are so much lower compared to Ethereum mainnet, but what is the risk of this? There should be some price I pay (or risk I take) when holding my funds on Matic, otherwise everyone ...
user avatar
  • 11
0 votes
1 answer
504 views

Polygon (ex-Matic): L1 and L2 communication

I try to send a URI to the layer 2 (Matic sidechain) from the "ERC721 Dummy contract" as Matic/Polygon team calls it and deployed on L1 (Ethereum mainnet). Their current Dummy ERC721 ...
user avatar
1 vote
0 answers
12 views

L2 token to ETH conversion

From my understanding, roll up L2 tokens can be converted to ETH, but how does it work when L2 solutions can spring up limitlessly? How are L2 tokens regulated such that there won't be an unlimited ...
user avatar
  • 111
0 votes
1 answer
205 views

Any Solidity-based sparse merkle tree implemenations in production?

It looks like sparse Merkle trees are useful for proofs in L2 systems. When looking around, a number of projects can be found that implement sparse Merkle trees to authenticate state or account trees. ...
user avatar
2 votes
0 answers
356 views

Polygon Network Fraud Proofs - State change reversal

After doing some surface reading about the Polygon L2 side-chain. I was interested in what actually happens if a successful fraud proof is submitted?. To enhance the security of the transactions, ...
user avatar
  • 1,540
2 votes
0 answers
24 views

What is the expected behavior of L2 systems under a chainsplit?

Assuming that there is both a optimistic rollup L2 and a zkrollup L2 system functioning nominally (i.e. they are both publishing their rollups to L1). Assume that a chain split happens at block 10000 ...
user avatar
3 votes
0 answers
53 views

Get transaction in mainnet from layer2 rollup

With the coming of optimistic & ZKP rollups, I was wondering how we will be able to retrieve transaction data through etherscan.io generated from a layer2 solution. Let's put an example: Platform ...
user avatar
1 vote
0 answers
153 views

maintaing metadata while ERC721 cross-chain transfer

I want to make any ERC721 token (on any contract) to be transferable from ethereum to MATIC chain (fully compatible with EVM with deployed support contracts on ethereum). So I am doing the following ...
user avatar
  • 1,492
1 vote
0 answers
22 views

How does the ForceMove protocol handle timed dispute periods?

The main idea behind the ForceMove protocol is that, in a state channel between predefined participants running turn-based applications, lets say 2 for this example (Alice and Bob), if it is Bob's ...
user avatar
0 votes
1 answer
54 views

How can the transactions to this address always adapt to have higher gas price than all the rest?

Looking at the transactions from: https://explorer-mainnet.maticvigil.com/address/0xfD0E9d3f4Eee056B49DF062B70f766cFB13fEb01/transactions Looking at every block that a transactions is sent to this ...
user avatar
0 votes
1 answer
78 views

What is a ZKRollup? And how does it work in scaling a DAPP?

I have tried looking into existing solutions such as ZKSync. I couldn't understand why you would rewrite your smart contracts in a different language - Zinc (as opposed to Solidity/Vyper).
user avatar
0 votes
1 answer
449 views

How to create you own ethereum sidechain?

How can I create a geth-clique POA network as an Ethereum sidechain to mainnet or testnets. what is the simplest ways to do that? are there any frameworks that can be implemented easily
user avatar
6 votes
1 answer
713 views

Gasless transaction and easy token Solidity receiver callbacks for ERC-20 tokens

I am planning a token swap for an old pre-ERC-20 token. The new token will have its ledger smart contract written from a scratch. While doing it, I would like to integrate new EIP features to the ...
user avatar
6 votes
2 answers
9k views

What exactly is Ethereum's Layer 2

I read about Ethereum’s Layer 2 Scaling Solutions. Understood that layer 1 is the base consensus layer of ethereum protocol, changes typically require a hard fork. Is it true that layer 2 here refers ...
user avatar
  • 542