Questions tagged [arbitrum]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
36 views

Can Arbitrum's block timestamp be trusted to the same degree as the L1 time?

L1 blocks cannot be fudged by validators. It is a value that can be safely used by apps. Can that be said about the value of block.timestamp on a L2 like Arbitrum?
Paul Razvan Berg's user avatar
0 votes
0 answers
10 views

Uniswap Allow USDT fee

I want to swap USDT to USDC, but Uniswap shows huge fees, especially Allow USDT (one time). Can someone explain why it happens and what to do?
vqdym's user avatar
  • 1
0 votes
1 answer
27 views

How to run the hardhat fork in the separate terminal?

I want to interact with the contracts in the mainnet, i used hardhat fork to fork the arbitrum mainnet, forking is done but after that my contracts getting deployed according to the script and the ...
Aviroxi's user avatar
0 votes
0 answers
26 views

Calculate transaction fee for send transaction on Arbitrum

Trying to implement send transaction i already acknowledge that gasLimit != 21_000 for arbitrum so i also changed my approach having following script for estimating: const [feeData, to] = await ...
Andon Mitev's user avatar
1 vote
1 answer
39 views

In optimistic roll-ups, can a validator post a valid block that builds on an old-but-invalid block which was not challenged?

In optimistic roll-ups, blocks (aggregated transactions) are published on the Ethereum main net. The main net functions as a security layer for the roll-up in the sense that it leverages the security ...
Kianoush Arshi's user avatar
1 vote
1 answer
63 views

Unable to create Arbitrum Sepolia Token

I want to create an Arbitrum Sepolia token. I tried to create Arbitrum Goerli token but everyone says Goerli is depricated. Also, I was unable to faucet to goerli because they want 0.1 ETH on the ...
alexey polusov's user avatar
0 votes
2 answers
53 views

insufficient funds for gas * price + value: address on approve usdc on Arbitrum

Hi i face error gas insufficient while try to approve usdc on Arbitrum my wallet have eth around 0.005 ETH why not enought for L2? require('dotenv').config(); const { Web3 } = require('web3'); // Set ...
krissanawat's user avatar
0 votes
0 answers
12 views

Converting between Alloy Primitive and Storage Types

How can we convert, for instance, the Address type from Alloy Primitives into the StorageAddress type from the Stylus crate?
Dege's user avatar
  • 1
0 votes
0 answers
9 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
2 votes
0 answers
18 views

How to run a script in a stylus project

I have a smart contract written with the stylus SDK, and I have a rust script that I've written to interact with it. My file structure looks as such: . ├── Cargo.lock ├── Cargo.toml ├── Makefile ├── ...
Patrick Collins's user avatar
2 votes
0 answers
21 views

Run a local stylus node?

Is there a anvil equivalence for stylus? ie: I want to test my stylus smart contracts against a local stylus node, how would I do that?
Patrick Collins's user avatar
0 votes
1 answer
17 views

Add a key, value pair to a sol mapping in stylus?

In my stylus contract, I have the following sol_storage: sol_storage! { #[entrypoint] pub struct SimpleStorage { mapping(string => string) name_to_favorite_number; } } And, I ...
Patrick Collins's user avatar
0 votes
0 answers
27 views

How to make a struct in `sol_storage` layout in `stylus`?

I am attempting to replicate a solidity storage layout in stylus. It includes a struct, and a list of that struct object: struct Person { uint256 favoriteNumber; string name; } ...
Patrick Collins's user avatar
0 votes
1 answer
37 views

Why do I use extern crate for alloc instead of `use std::alloc`?

I'm making a simple storage contract in stylus, but I'm confused as to why I can't import alloc like I can other imports. I have two kinds of imports // the extern extern crate alloc; // The classic ...
Patrick Collins's user avatar
1 vote
1 answer
77 views

How to verify a stylus smart contract?

I have deployed the Counter contract to the Stylus testnet. However, looking at verification options, it looks like only Solidity & Vyper is supported. Is there a way to verify a Stylus (rust-...
Patrick Collins's user avatar
0 votes
0 answers
15 views

I try connect arbitrium with rpc in ethers@v6, but get empty obj

const provider = new ethers.JsonRpcProvider( 'https://arb1.arbitrum.io/rpc', ) console.log({ provider, chainId }) // result: { provider: JsonRpcProvider {}, chainId: 42161 } version ethers@v5....
A N D J I's user avatar
1 vote
1 answer
24 views

NFT Not Show In Opensea Collection Profile

I am trying to buld ERC721 to my NFT. But the NFT not show in NFT opensea profile Collection. I am using openzeppelin library and the basic project is using Hashlib labs. The skenario is when i mint ...
angga danar's user avatar
2 votes
0 answers
102 views

How to calculate total fees earned by a UniSwap V3 position on Arbitrum?

I want to write a python script, that keeps track of the fees earned by my UniSwap V3 positions on Arbitrum and stores daily snapshots in a database. I’ve read quite a few threads here, but could not ...
Kurt's user avatar
  • 31
1 vote
0 answers
51 views

What happens with Chainlink price feed when L2 sequencer is down?

What exactly happens with chainlink price feeds when an L2 sequencer is down? I know that during this moment transactions can be submitted only through L1 rollup contract and that some users can be ...
urataps's user avatar
  • 91
2 votes
0 answers
11 views

Logging time when our full node receives data of a new block from Arbitrum feeder

Per the title, I'm looking at logging the time when our full node receives data of a new block from the Arbitrum feeder. I'm using GETH to run our full node. Any idea which file I should be looking at ...
Khanh's user avatar
  • 41
0 votes
1 answer
55 views

Reading from a nodejs object

I try to read data from this node js object (I got it from sequencer feed on arbitrum): data = [ BigNumber { _hex: '0x0f634d1e114f4d', _isBigNumber: true }, BigNumber { _hex: '0x01', _isBigNumber: ...
Dani's user avatar
  • 63
2 votes
1 answer
349 views

Reading transactions from arbitrum sequencer feed

I try to read transactions from arbitrum sequencer feed and decode the transaction data to get information about the transaction, therefore I try to check which function is called for the transaction ...
Dani's user avatar
  • 63
0 votes
1 answer
97 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
3 votes
1 answer
442 views

Does arbitrum / optimism / other L2s have MEV?

Due to the fact that the sequencer is the "real" node that sequences transactions, I would imagine that is the true MEVer... But for example, could I run an Arbitrum node and MEV some ...
Patrick Collins's user avatar
0 votes
0 answers
51 views

ETH Sent to Uniswap V2 router after creating LP

Please help. I tried creating an LP on Uniswap V2 on Arbitrum. It turns out only v3 is available on arb one. On uniswap page, I chose v2 pool on Eth network, then on top right, I changed it to Arb one....
ven's user avatar
  • 1
0 votes
0 answers
21 views

Transaction Reverted by EVM during NFT Minting Process

Body: I am trying to create an NFT minting application using React for the frontend, Express.js for the backend, and Solidity for the smart contract. The smart contract is deployed on the Ethereum ...
New programmer's user avatar
0 votes
0 answers
14 views

As of 2023 June, what is the best method to swap USDC from Arbitrum to Polygon with the least slippage

It's June 2023, what is the most cost effective way to swap USDC from Arbitrum to Polygon?
Patoshi パトシ's user avatar
0 votes
0 answers
80 views

Alchemy Account Activity webhook not firing for internal transfers

According to the webhook docs when listening for account activity on an address it should include internal transactions. I'm not seeing any though. For example when i list a NFT for sale on OpenSea ...
Madbreaks's user avatar
  • 151
0 votes
0 answers
40 views

Is there something wrong about this contract below? I can't transfer the token even I set the slippage tolerance to 30%

The error msg on SushiSwap is 'Unexpected issue with estimating the gas. Please try again'. Here is the complete contract code: /** *Submitted for verification at Etherscan.io on 2023-06-15 */ /** *...
BadAction's user avatar
0 votes
0 answers
53 views

I cannot perform a purchase function on a marketplace. I get execution reverted

I'm trying to execute a purchase function in a marketplace and I can't, I get a return error and I can't understand how to resolve the error. from web3 import Web3, HTTPProvider from web3.middleware ...
Alex Fernandes's user avatar
1 vote
0 answers
120 views

Unable to deploy multiple contracts to arbitrum nova via foundry

I've written a script to deploy multiple contracts to arbitrum nova via foundry enviroment // SPDX-License-Identifier: MIT pragma solidity >=0.4.22 <0.9.0; import "../lib/forge-std/src/...
Ghinter's user avatar
  • 21
1 vote
1 answer
72 views

What does it mean by "rollups sends transactions on mainnet"?

While trying to understand what rollups are, I read rollups sends transactions to mainnet in a batch. I don't understand why and practically what does it do. To better understand it, I came up with a ...
Stav Alfi's user avatar
  • 206
1 vote
1 answer
104 views

How does one create and send TXs on L2 - Arbitrum and others?

In ethers.js or web3.js How does one create and send TXs on L2 - Arbitrum and others? Is the algorithm absolutely identical to the one on L1, or not? How does one transfer ETH between L1 and L2?
Kyell's user avatar
  • 91
0 votes
0 answers
26 views

Understanding RouteProcessor.sol script and how to use the contract function

I am a beginner trying to understand what is the bot/contract transaction that is displayed in some DEXs. Attaching screenshot from dextools and pair link here. I followed the transaction here and ...
metame_anon's user avatar
0 votes
0 answers
64 views

Where is my weth gone

I have converted arbitration eth to weth but it is not showing in Uniswap wallet
DCrytodoc's user avatar
0 votes
0 answers
77 views

Verifying if Mummy Finance on Fantom is a Fork of GMX: Identical On-Chain Code

Hello StackExchange community, I am interested in investing in a protocol called Mummy Finance, which is built on the Fantom network. The developers of Mummy Finance claim that their project is a fork ...
Mikkel's user avatar
  • 1
0 votes
0 answers
37 views

Novice question regarding scam token contracts and exchange direct approach

Im really new regarding the contracts and I found one really fresh that´s a scam and I wanted to study it a little, I´ve been checking that this contract has buy/sells, but it doesnt let people to ...
Soteleon's user avatar
2 votes
2 answers
185 views

Reading events from layer 2 blockchains

I'm planning to query a tx using a tx hash on Ethereum and get the events/logs to find out the recipient and sender of the ETH. Is it possible to do so for L2 blockchains like Optimism, ZkSync, ...
att's user avatar
  • 165
1 vote
0 answers
36 views

What's the arbitrum address for EUROC?

Here's the address on the ethereum network: https://etherscan.io/token/0x1aBaEA1f7C830bD89Acc67eC4af516284b1bC33c I would like to know which is the corresponding address in the arbitrum network
John's user avatar
  • 81
0 votes
1 answer
531 views

Recovering ETH Sent to Wrong Network's Multisig Wallet

I accidentally sent ETH from Arbitrum network to a multisig (multi-signature wallet) I created on the Ethereum main network. How can I recover my assets knowing that this wallet doesn't exist on ...
mnt's user avatar
  • 1
0 votes
0 answers
66 views

Problem with delegatecall

I want to change owner of USDT smart contract in arbitrum chain (EVM) with foundry forge but it dont changed with delegatecall. How can I change with delegatecall? Here is my code. // SPDX-License-...
K. Khurshudyan's user avatar
1 vote
1 answer
30 views

what's the arbitrum address for EURT?

I would like to get the arbitrum address for EURt: 0xC581b735A1688071A1746c968e0798D642EDE491 https://etherscan.io/token/0xC581b735A1688071A1746c968e0798D642EDE491
John's user avatar
  • 81
0 votes
1 answer
2k views

Uniswap v3: exactInputSingle token to ETH is wrapped

I've made a python web3 script that swaps ETH to Token using exactInputSingle function on Uniswap v3 Abritrum chain. Transactions are successful and the script is working, but the problem is, when I ...
Austin's user avatar
  • 123
1 vote
0 answers
205 views

Payment URL/metamask deeplink does not work for transferring USDT in Arbitrum network

I generated the following deeplink with https://metamask.github.io/metamask-deeplinks/# https://metamask.app.link/send/pay-0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9@42161/transfer?address=...
John's user avatar
  • 81
0 votes
3 answers
2k views

Gas too low for transaction | Arbitrum

I am trying to send a transaction with ethers.js. All looks fine but I get this error anytime I start my app to development. The error on my IDE: Error sending tx: processing response error (body=&...
PerfDev.'s user avatar
0 votes
2 answers
622 views

I keep getting Metamask 429 Error on my Dapp

I'm using react-moralis to enabled web3 access on my Dapp. For the application to function, we are constantly reading from the blockchain and, of course, often writing to it as well. We have tried to ...
l1nkm4rine's user avatar
1 vote
0 answers
35 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
1 answer
87 views

Do EVM contract addresses follow an order? [duplicate]

I've noticed that if I deploy the same contract on Optimism, Arbitrum, and Polygon, they will all share the same contract address. Also, if I then deploy 3 contracts on Optimism, wait a bit, and then ...
Dimitri Borgers's user avatar
0 votes
2 answers
145 views

What are the main differences from Mycelium vs GMX perp dex?

It looks like Mycelium DEX does pretty much what GMX dex does, except for Mycelium offering a few more trading pairs. What are the main differences from these 2 DEXes on Arbitrum and its history if ...
Patoshi パトシ's user avatar
1 vote
0 answers
51 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