Skip to main content

Questions tagged [layer-2]

The tag has no usage guidance.

51 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
8 votes
0 answers
118 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 ...
Andrew's user avatar
  • 106
3 votes
0 answers
83 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 ...
Sergi Juanati's user avatar
2 votes
1 answer
101 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 ...
sentiinex's user avatar
2 votes
1 answer
127 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-...
shiiu akiyama's user avatar
2 votes
1 answer
29 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 ?...
nonopolarity's user avatar
2 votes
0 answers
484 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, ...
Malone's user avatar
  • 1,590
2 votes
0 answers
33 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 ...
placeybordeaux's user avatar
1 vote
0 answers
25 views

Prove on L1 that an ERC20 transfer event happened on L2

Let's say Alice transferred 100 USDC to Bob on an L2 (e.g. Arbitrum One or Optimism) in a Transaction T of Block B. I would like to prove in a Solidity Smart-Contract on the underlying L1 (Ethereum ...
Greg Jeanmart's user avatar
1 vote
0 answers
18 views

How is the address of an Base contract computed?

I'm curious when i see some fantastic projects, so I'm doing some experiments to find out the method which used by Base to generate the contract address. Tried with two different methods, and I've ...
Spencer's user avatar
  • 11
1 vote
0 answers
39 views

why does optimism need to derivation from L1 but zk-rollup scheme like polygon zkevm not?

recently I am reading the optimism docs and the spec named derivation confuse me. I haven't found it in any docs of zk-rollup projects like zksync, Polygon, or zkevm.
meta's user avatar
  • 11
1 vote
0 answers
120 views

How to transfer coins between L1 and L2 via web3.js or ethers.js?

How to do it? Programmatically. Does it always require a bridge? Or can it be done in other way too? I haven't found any difinitive answer to this anywhere.
Nondi's user avatar
  • 49
1 vote
1 answer
16 views

Need advice on using layer 2 in dex

I have created a Dex, I want to use its swap and providing liquidity functionality through layer 2, how to do that? If u answer with code example then it will be very helpful for me, I can understand ...
Hacek 's user avatar
  • 677
1 vote
0 answers
38 views

I need help on using Base chain by coinbase

I wanna use Base chain in my dapp, but i could not get the documentation handy, I did not understand how i use the bridge contract address. Does configuring my hardhat.config.js as advised in ...
Hacek 's user avatar
  • 677
1 vote
0 answers
25 views

Both L2 and gasless

I need a network that is both L2 (Validium or ZK-rollups) and provides a gasless platform (for the L2 smart contracts). Which L2 networks provide such the capability?
porton's user avatar
  • 1,804
1 vote
0 answers
40 views

Arbitrum: Mapping L2 blocks to L1 batches using RPCs

I'm looking for a way to programmatically map L2 blocks to their corresponding rollup batches in L1 using RPCs. Is there a way to do this, and if so, what would be the best approach? Any help or ...
Lucas Pecina's user avatar
1 vote
0 answers
40 views

Sign and send signed transaction in L2 zk-Rollup

I own an ERC20 token on the Ethereum mainnet but as everyone knows the fees are very high would it be possible use L2 zk-Rollup with this methods below? Example transfer(), estimateGas(), ...
Gabriel's user avatar
  • 111
1 vote
0 answers
59 views

How does one get the balance of an ETH address on Arbitrum or other L2's using eth-cli commands?

Using eth-cli how do I access the balance of an address on L2's such as Arbitrum, Polygon, etc....
Patoshi パトシ's user avatar
1 vote
1 answer
115 views

What is difference between ZK Rollups and Polygon?

ZK Rollups and Polygon mainnet are both layer 2 solution built for ethereum scaling solution. So what's the difference between these two solutions and which one to prefer?
Rishabh Raghwendra's user avatar
1 vote
0 answers
512 views

How do I calculate the transaction fee on the Optimism network

I have this transaction hash https://optimistic.etherscan.io/tx/0x9b8f0d63adb5c633baff74b642331d0015ea207134bd3f7f526a9b89d5dfae27 How did optimism calculate the 0.05c USD transaction fee Can someone ...
Khandkar Islam's user avatar
1 vote
0 answers
103 views

How can i retrieve the list of ERC20 tokens bridged to other evm chains?

Is there is a way (preferably not relying on an external API) to retrieve a list of tokens bridged to L2 or other EVM chains corresponding to a token on the Ethereum mainnet. I thought of parsing ...
David Van Isacker's user avatar
1 vote
0 answers
33 views

Understanding data availability for zk rollups

My understanding is that if a zkrollup operator suddenly ceases operation, you have to sync the rollup’s history from genesis to get the current state. In other words, if the transaction data has been ...
Zingo's user avatar
  • 11
1 vote
0 answers
85 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.
anonym_rider's user avatar
1 vote
0 answers
129 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 ...
Hristo Todorov's user avatar
1 vote
0 answers
105 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 ...
Jacopo Mosconi's user avatar
1 vote
0 answers
55 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 ...
xenon's user avatar
  • 455
1 vote
0 answers
71 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/...
gnxvw's user avatar
  • 267
1 vote
0 answers
90 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 ...
helgez's user avatar
  • 11
1 vote
0 answers
23 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 ...
John M.'s user avatar
  • 111
1 vote
0 answers
187 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 ...
hack3r-0m's user avatar
  • 1,919
1 vote
0 answers
24 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 ...
riverwastaken's user avatar
0 votes
1 answer
20 views

Bulk transaction on Base chain

After adding liquidity, I frequently see wallets making bulk transactions on the base chain. How can I snipe tokens early and cheaply like them? CA: 0x1234567517769aCd8519BA85184EdbBaC6062971 Tx: ...
Văn Châu Cao's user avatar
0 votes
0 answers
9 views

Understanding the Implications of Layer 2 Solutions on Ethereum's Scalability: Time to Finality Considerations

Certain Layer 2 solutions, such as Optimistic Rollups and ZK Rollups, aim to address Ethereum's scalability challenges. While they are expected to significantly increase transactions per second (TPS), ...
Hyunduk Shin's user avatar
0 votes
0 answers
18 views

Evaluating Cost Saving Potential Layer1 to Layer2

I am trying to evaluate cost savings when using a Layer 2 Blockchain network compared to Ethereum/Layer1. Currently i do not necessarily make use of L1/2 inter-communication, so just deploying and ...
AirUp's user avatar
  • 363
0 votes
1 answer
343 views

Layer2: Revert Execution Error when Calling exactInputSingle in Uniswap V3

Hello Stack Overflow Community, I am working on swapping tokens in a base layer2 network using Uniswap V3 and ethers.js. I have successfully approved the transaction using the approve function, but ...
Ghassane Aboughazaouat's user avatar
0 votes
0 answers
9 views

Layer 2 gas fees are paid in which cryptocurrency?

I have a doubt regarding Layer 2 blockchains (zk, optimistic, ...). At some point, nodes running L2 blockchains, send transactions to the L1 blockchain (Ethereum for the sake of this example), which ...
Alberto Molina's user avatar
0 votes
1 answer
77 views

Bridge of tokens to L2?

I am developing erc20 tokens and Dapps. If we can issue tokens to ethereum and when they are moved (e.g. when we move tokens according to Dapps rules) we can use polygonZkEVM or optimism with high ...
tjtr's user avatar
  • 1
0 votes
0 answers
49 views

How to create a ZKP rollups on top of any EVM (eg. Hyperledger Besu) blockchain network?

I have a Hyperledger Besu network running, with IBFT 2.0 consensus protocol, up and running. I'm figuring out how could I deploy a layer 2 network, on top of this Besu network, in order to increase ...
Alexander Herranz's user avatar
0 votes
0 answers
20 views

Bridging ethers without private keys

According to Optimism SDK guide we should provide the Ethereum private key to generate an account on Optimism. If we were to apply this method to an crypto exchange that its wallet service is ...
Alireza's user avatar
  • 567
0 votes
0 answers
13 views

Reducing Ethereum gas costs for crypto exchanges using layer 2 platforms

As I researched on reducing Ethereum gas costs for crypto exchanges using layer 2 platforms, the use of these platforms is beneficial for an crypto exchange when the users of that exchange, after ...
Alireza's user avatar
  • 567
0 votes
0 answers
17 views

Optimistic rollups and simple transactions

My understanding is that in an optimistic rollup, all data from users authorizing a transaction is stored on L1. The computation itself corresponding to that transaction is executed on L2. For simple ...
user1936752's user avatar
0 votes
0 answers
8 views

Would this library be interesting to dApp developers for in-browser wallet?

I'm with INTMAX, developing webmax.js, a JS library for quick dApp integration with our in-browser web3 wallet that's secure, uses biometric authentication, & supports EVM-compatible / Layer 2 ...
popomint's user avatar
0 votes
0 answers
29 views

Creating ETH Sidechains

I have been looking online for a resource that helps me how I can build ETH sidechain and Layer 2 How can i use the ETH blockchain and make it a sidechain are there any tutorials or guides ? Do i ...
michaelaberra's user avatar
0 votes
1 answer
194 views

Where do arbitrum gas fees go?

Similar question to here except, based on the arbitrum docs: ⚠️ Note: There is no protocol level incentive to run an Arbitum full node. I know the sequencer gets paid some amount of the fee, but I ...
Patrick Collins's user avatar
0 votes
0 answers
140 views

How to calculate "amountOutMin" on some DEX-es?

There's a function in a contract on HOT-protocol exchange sendToL2( uint256 chainId, address recipient, uint256 amount, uint256 amountOutMin, uint256 deadline, address relayer, uint256 relayerFee ) ...
Kyell's user avatar
  • 91
0 votes
0 answers
38 views

Can you make one transaction on mainnet that initiates a transaction on a layer 2?

I was going through some grants/RFPs and I noticed an interesting request. They are looking for a solution that allows a user to make a single transaction on mainnet to deposit funds into a protocol ...
soyboy's user avatar
  • 63
0 votes
1 answer
69 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 ...
Yuval's user avatar
  • 1
0 votes
0 answers
338 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 ...
JF0001's user avatar
  • 291
0 votes
1 answer
131 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 ...
xenon's user avatar
  • 455
0 votes
1 answer
122 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?
Andriy Lysak's user avatar
0 votes
1 answer
103 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).
Satya Botcha's user avatar