can someone explain how arbitrum works ? i don’t get the ‘batch transactions, execute them off the main Ethereum chain, and store the confirmation on the main chain’
when i make a transaction on arbitrum , say a trasfer from my arbitrum wallet to another arbitrum address. what information exactly is stored on Ethereum chain ?

Sep 21, 2023, 7:53 PM
can you eborelate ?
Sep 21, 2023, 8:16 PM
The descriptions says Arbitrum allows users to perform transactions off the main network and has them verified and batched before being committed back to the main chain.
What does that really mean? what kind of transactions ? what kind of off-chain.
i just don’t see how it differs from other chains like BNB chain
in other words. if i want to send you ETH on mainnet, it would be slow and expensive, sure. I can just send it using BNB network for example, cheap and fast. why would anyone need Arbitrum for that ? what is the usecase of it
Sep 21, 2023, 8:30 PM
read more on l2s
just a bit more you need
to understand
Sep 22, 2023, 10:11 AM
Unlike BNB, Ethereum mainnet can't achieve the scalability (trx/sec) like BNB, so it relies on Layer2 chain to improve its scalability. L2 executed and bundles many transactions together and submit a single transaction into mainnet. What kind of transaction? Regular ethereum transaction. L2 is also using the ethereum execution client. Off chain means off the main ethereum chain.
Sep 24, 2023, 10:40 AM
that’s the thing that i don’t get. i bridghed some sepolia eth to arbitrum sepolia testnet. on etherscan i see that i send that money to a smart contract. after that i transfered that testnet eth to another arbitrum testnet account. however i don’t see any transaction on etherscan. how is it bundling and submiting transaction into main eth chain ?
Sep 25, 2023, 6:38 PM
Hello Guys So ,...

I was testing a locker , when I call the lockERC20() function on the contract it goes well on etherscan , but it keeps failing when called from a frontend

this is the contract : https://goerli.etherscan.io/address/0x76f9d2ce0ea63426f2b02d78c641541862b5b416
so the question is , if it is failing when calling from frontend that means I am doing something wrong on the frontend?
@karola96 ?
Sep 25, 2023, 7:10 PM
probably? do you have a failed tx?
can you share the code that you are using in your FE ?
Sep 25, 2023, 7:13 PM
https://goerli.etherscan.io/tx/0xffdbbbc4847586d76a97d2e06c83e87b356a6219c3d7a0e74bfbc04341e0fbda
const a = await contractToken.approve(wallet, lockAmount?.toString())

const lockERC20 = await botBrainContract.lockERC20(
lockedToken,
lockAmount?.toString(),
duration, { gasLimit: "3000000"})
these two functions , called inside an If else block
Sep 25, 2023, 7:15 PM
Sep 25, 2023, 7:15 PM
funny thing is this is actually not done on my pc , when I am calling the function it is going , it is specific to a certain someone on this
https://goerli.etherscan.io/tx/0x90c85bacc71a4f5d1e943be69ff5398003985ffb08d6fd8792c63a2622a252b5
when I call it goes through for some reason
what might be the reason @FreezyEth
Sep 25, 2023, 7:19 PM
lock erc1155 ?
Sep 25, 2023, 7:19 PM
I am so confused
no erc20
rn only erc20 testing
Sep 25, 2023, 7:19 PM
yep sorry my bad
no allowance
you are not doing the approval correctly
Sep 25, 2023, 7:21 PM
oh but that gone through
Sep 25, 2023, 7:21 PM
you approved yourself
here the approve is wrong
Sep 25, 2023, 7:21 PM
oh
Sep 25, 2023, 7:22 PM
instead of wallet, you should put the locker address
Sep 25, 2023, 7:22 PM
I see lol
Sep 25, 2023, 7:22 PM
that is the sender address
Sep 25, 2023, 7:22 PM
const a = await contractToken.approve(wallet, lockAmount?.toString())
Sep 25, 2023, 7:23 PM
yes it is wrong
Sep 25, 2023, 7:23 PM
hes talking about thos
Sep 25, 2023, 7:23 PM
await contractToken.approve("0x76f9D2Ce0Ea63426F2B02d78C641541862b5B416", lockAmount?.toString())
Sep 25, 2023, 7:24 PM
ok i see, thanks for help bro @FreezyEth
Sep 25, 2023, 7:26 PM
yw
Sep 25, 2023, 7:27 PM
Your transfer within arbitrum can only be seen in testnet.arbiscan.io, not etherscan coz that is L2 transaction, not L1.

If you want to view the bundling part, check out the "Batch" page in arbiscan. Find out your transaction is in which batch and whether the batch has already been submitted to L1.
Sep 26, 2023, 4:18 AM

© 2024 Draquery.com All rights reserved.