Questions tagged [arbitrum]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
15 views

How to enter values in a tuple in a contract function?

Trying to directly interact with a contract calling a specific function here https://arbiscan.io/address/0xa2adf5ef43226a4a6a7c6b360f486bdaf2712bc8#writeProxyContract exitFarming In what format are ...
floormat's user avatar
0 votes
1 answer
35 views

How to broadcast a transaction directly to a centralised sequencer (Arbitrum/Optimism/others)

Most layer two chains have their centralised sequencer which operates first-come-first-server, or so-called fair sequencing manner. If you use the centralised sequencer, there are no Malicious ...
Mikko Ohtamaa's user avatar
0 votes
0 answers
18 views

Stealing funds with batchTransferWithAuthorization(0xcccbb34c) and safeTransferFrom(0x42842e0e)

I had funds stolen from the Arbitrum and Ethereum network the other day using batchTransferWithAuthorization(0xcccbb34c) and safeTransferFrom(0x42842e0e). Is it enough to do a revoke so that the ...
Artem's user avatar
  • 1
1 vote
0 answers
10 views

Blind signing when trying to send USDT over Arbitrum network

I am trying to send USDT ERC20 token through arbitrum network and all things go well until i want to personally sign it using my hardware wallet. seems like the ABI is wrong or corrupt as i get bling ...
saugat giri's user avatar
0 votes
0 answers
50 views

Transfered USDC from Arbitrum Network in Metamask to Phantom Wallet Eth address - I cant access funds

I transfered USDC from Arbitrum Network in Metamask to Phantom Eth address - I cant access funds. Does anyone know of a way to recover? Thanks
Petrichordia's user avatar
1 vote
0 answers
14 views

Chainlink VRF on Arbitrum Sepolia fork: requestRandomWords Failing

I am going through the Foundry Course by Patrick Collins (@Big Shoutout) and I have just completed the section on creating the Raffle. I deployed the Raffle successfully on Eth Sepolia and created the ...
Charlie Mack's user avatar
0 votes
2 answers
48 views

Inability to bridge back from Arb to zksync with zksync wallet on Gnosis safe

I bridge about 0.13eth from zksync eth to ARB using jumper bridge. As you know, zksync users use Arb while bridging in and out. However I can't bridge out back because the feature is not possible yet ...
Fakojo Oluwatobiloba 's user avatar
1 vote
1 answer
41 views

Fixing programatically trx intrinsic gas too low on Arbitrum

I am trying to simply approve spending of a token by uni router like that: MAX_APPROVAL_HEX = "0x" + "f" * 64 MAX_APPROVAL_INT = int(MAX_APPROVAL_HEX, 16) params = { 'from': ...
Nicolas Rey's user avatar
0 votes
0 answers
40 views

How to programmatically unwrap weth

I di d a swap using uniswap exactInputSingle from Link to WETH. But I am stuck unwrapping WETH now. I used to use the function withdraw, but for some reason, I do not find that function in the '...
Nicolas Rey's user avatar
0 votes
2 answers
394 views

Sent ETH from exchange to arbitrum one network instead of ETH network

Is it possible to retrieve the ETH by creating an exact same address on Arbitrum One network? Is it the same steps as described here on this other similar question: Recovering ETH Sent to Wrong ...
appm's user avatar
  • 1
2 votes
1 answer
204 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
38 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
120 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
91 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
52 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
298 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
152 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
1 vote
1 answer
23 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
  • 11
0 votes
0 answers
15 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
23 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
3 votes
0 answers
26 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
25 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
31 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
1 vote
2 answers
124 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
99 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
28 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
55 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
304 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
60 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
15 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
72 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
688 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
182 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
903 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
85 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
23 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
18 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
117 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
  • 161
0 votes
0 answers
56 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
73 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
2 votes
0 answers
182 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
  • 31
1 vote
1 answer
166 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
  • 216
1 vote
1 answer
168 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
28 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
98 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
91 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
38 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
211 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
42 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
814 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