Skip to main content

Questions tagged [mainnet]

The tag has no usage guidance.

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

interact with etherscan.io

I want to interact with etherscan.io. I work with windows powershell. I created a npm init and install web3.js. I created a neweb3 using const { Web3 } = require('web3'); answer : undefined I created ...
arnaud's user avatar
  • 1
0 votes
0 answers
23 views

How to solve Delay while calling contract method

I have a contract which has a trigger button and am calling that trigger on every 30 seconds so what i need is instant change in the contract as i have conditions to match and it is basically a time ...
Roy's user avatar
  • 1
0 votes
0 answers
16 views

Issues Adding Liquidity on Mainnet with a Custom ERC20 Token (It Works Using Hardhat!)

I've developed an ERC20 token using Solidity and have successfully tested its liquidity functions on Hardhat. The process completes successfully in the Hardhat environment, but when I attempt the same ...
Yazan Ali's user avatar
0 votes
1 answer
19 views

How to determine whether code is running in a JS VM such as Remix, as opposed to ETH mainnet?

block.chainid always returns 1 for both Remix VM and ETH mainnet. There has to be some intrinsic variable that will always return a different value compared to the other environment. I'm aware I could ...
Ashraile's user avatar
  • 125
0 votes
0 answers
22 views

Trying to setup Astar zkEVM Mainnet Permissionless RPC Node but failed

I am trying to setup Astar zkEVM Mainnet Permissionless RPC Node following these docs, but it's not working for me. Looks like the container zkevm-rpc is not functioning. curl -H "Content-Type: ...
Tapas Jana's user avatar
0 votes
0 answers
13 views

Simple (app) way to send payment request to an address

I am sorry for the lame question, but I am a bit lost here. Background: My wife got scammed off of 2 ETH. We can see the transaction at: etherscan.io and the address the ETH went to. I know that: ...
marfi's user avatar
  • 101
2 votes
1 answer
41 views

Used Goerli instead of mainnet launchpad

i accidentally used the goerli.launchpad webpage instead of mainlaunchpad page to generate keys and stake. it looks like the validator was still created. does it make a difference if the keys were ...
bradleystir9's user avatar
1 vote
2 answers
1k views

Does hardhat ethers contract.deploy automatically handle gas estimation? Or what is best practice for mainnet deploy?

I am using ethers as part of hardhat and I'm preparing to deploy to mainnet. I am using the gas-estimator plugin, and I see how much gas is used during each test/testnet deployment. However, so far, I ...
Lucas Moskun's user avatar
1 vote
0 answers
20 views

Mainnet fork deployment - Error: *** Deployment Failed *** "Migrations" hit an invalid opcode while deploying

I am trying to deploy contracts on a mainnet fork. I have my fork running with the command ganache --fork https://mainnet.infura.io/v3/$INFURA_API_KEY --wallet.unlockedAccounts=$MY_ACCOUNT --chain....
justinsacco's user avatar
0 votes
0 answers
14 views

Custom RPC URL Support for EVM Mainnet?

We are currently developing a new EVM-based mainnet and we are interested to know if Safe Wallet supports custom RPC URL functionality. Could you please let us know if it is possible to configure and ...
NFTERs Platform's user avatar
0 votes
1 answer
1k views

Stuck Transaction: Receiving USDT from Binance Smart Chain to Coinbase Ethereum Address

I hope you can assist me with a transaction issue I'm currently facing. I received USDT to my Coinbase Ethereum address from Binance Smart Chain, but the transaction is on hold, and I am unable to ...
Tom Cruise's user avatar
0 votes
1 answer
538 views

transaction would cause overdraft

I am only borrowing 25% of my wallet balance and I get transaction would cause overdraft on Main net. The code works on Sepolia test net. Any ideas of what causes this? I get an instance ...
pigfox's user avatar
  • 71
0 votes
1 answer
344 views

Error while deploying smart contract on mainnet of ethereum

when I deploy a smart contract on Goerli testnet then it will easily be deployed but when I try to deploy the same contract on mainnet then it gives me this particular error even I have ethers in my ...
Afaq Ahsan's user avatar
0 votes
2 answers
432 views

Withdrawing funds from ETH Mainnet wallet

I have some ETH in a wallet (on an NFT platform) on the Mainnet network. I also have a MetaMask wallet on Mainnet and a Binance account. I would like to withdraw my funds to my fiat bank account. It ...
anon010101's user avatar
0 votes
1 answer
42 views

Swap contract v Lightning network contract

I'm trying to understand the difference between why a swap on, say, Uniswap or some liquidity pool needs gas and must wait to be "included in the next block" and to be confirmed in a few ...
Philip hughes's user avatar
2 votes
1 answer
66 views

Can not interact with the deployed contract

getting this error Error: Transaction reverted: function returned an unexpected amount of data at Proxy.getDecimals (contracts/proxy.sol:100) at processTicksAndRejections (node:internal/process/...
Cartman_bruh's user avatar
2 votes
3 answers
1k views

What is the current size of a copy of the entire Polygon Mainnet chain?

I want to know the total size (in GB or TB) of the database on a node that has a copy of the entire Polygon Mainnet chain, so I can allocate resources for a production instance. How can I know that? I ...
Falcon Stakepool's user avatar
0 votes
1 answer
58 views

Ethereum Mainnet Error: "Migrations" could not deploy due to insufficient funds

Newbie to Ethereum NFT contract deployment here. So please bear with my questions. I am trying to deploy a ERC-721 contract to ETH Mainnet and I have 0.285 ETH in my wallet. But I am still getting ...
j7coder's user avatar
1 vote
1 answer
254 views

Getting the latest outgoing transaction of an Ethereum address

I'm trying to write a code to get the latest outgoing transaction of an Ethereum address data. For that I reached to Infura and tried to get it using something like this: const INFURA_URL = 'https://...
m0j1's user avatar
  • 177
1 vote
1 answer
458 views

Is there a more decentralized RPC server for MetaMask than Infura?

The default RPC server for MetaMask browser extension is Infura. However, Infura is known to monitor the IP addresses and other data of its users. Anyone who is touting decentralization of crypto, but ...
user610620's user avatar
  • 1,528
1 vote
2 answers
282 views

How to find out the owner of the NFT, knowing the address of the NFT itself

My question is not quite simple... Is it possible to get the owner's wallet address by knowing the NFT address? Let's imagine that we already know the address of a certain NFT that some person bought ...
Andrew Novikoff's user avatar
0 votes
0 answers
357 views

Node not connecting to static/trusted peers etherum geth [ public network ]

I followed all the steps of adding trusted and static peers: Manually adding the peers to configuration file config.toml Using addTrustedPeers and addPeers of the geth console set the --nodiscover ...
Malak's user avatar
  • 1
0 votes
1 answer
173 views

Alchemy api eth_getProof returns a wrong storage slot

I encountered a issue that eth_getProof returns wrong storage key and proof. This is a bash script which could reproduce the issue. And after some tests, I found increasing the interval between thoes ...
Hk04e17 Ff17's user avatar
2 votes
1 answer
958 views

Geth has connected to 3+ peers but won't download blocks

I'm trying to run a geth node on my machine. Yesterday I had troubles with finding peers. Today for some reason I'm connecting to many more peers but none of them seem to be willing to serve me any ...
Paymahn Moghadasian's user avatar
0 votes
1 answer
159 views

See Balances on mainnet-fork?

I'm currently watching my first smart contracts tutorial by freecodecamp and it works fine but, I have one question: How can I check the balance of my mainnet-fork account(s)? When I work with Rinkeby ...
Christopherus's user avatar
1 vote
0 answers
16 views

Problem syncing to mainnet

I've successfully synced to mainnet in light mode, but I'm trying to do so with --syncmode snap. I can see that there are peers connected using the net.peerCount on the IPC. However, when I use eth....
Identicon's user avatar
0 votes
1 answer
150 views

"before each" hook for "Fetching contract address" for forked mainnet in hardhat

I have forked ethereum mainnet and I have a contract for which I want to run tests in forked network. Below are my code: test.js: const { time, loadFixture, } = require("@nomicfoundation/...
Rishabh Raghwendra's user avatar
1 vote
1 answer
368 views

Why Is HardHat Mainnet Fork Always Behind By Roughly 5 Blocks?

Whenever I do a fork on mainnet at latest with hardhat, it's never at the latest block. Why is that? For example in the below: console.log("BLOCK FRO ALCHEMY: ", (await ...
user1784747's user avatar
1 vote
1 answer
174 views

is there a way to extract smart contract code from bytecode?

I have deployed the smart contract into polygon mainnet but I do not have the smart contract code now, I only had the smart contract address. I have not 'verify and published ' after deploying the ...
Ashok Sandhyala's user avatar
4 votes
3 answers
6k views

The same wallet address on the Mainnet Ethereum network and on the Polygon network. Are these two different wallets with two different owners?

I want to transfer some matic (Polygon network) to an Ethereum wallet address I know. But I don't know the address of this wallet on the Polygon network, I know its address on the Ethereum Mainnet. ...
solidsnake777's user avatar
0 votes
1 answer
89 views

How to get smart contract attributes by some block in mainnet?

I want to track some smart contract's attributes in the neighbouring blocks in mainnet. I know hash of the contract and hash of the 'starting' block. I use brownie. How can I get attributes of the ...
Filipp S's user avatar
1 vote
0 answers
355 views

experiencing "RangeError: Maximum call stack size exceeded" with hardhat mainnet fork, when calling contract names on chain

I am trying to test my contract against mainnet using the hardhat fork mechanism, I am using alchemy as my network provider and trying to retrieve the contract names from mainnet after creating ERC721 ...
user2740525's user avatar
0 votes
1 answer
47 views

Failed deployment to Ethereum mainnet ate all my ETH

I've been trying to deploy two contracts with proxy admins to ethereum mainnet but they kept failing due to intrinsic funds which was fine because it reverted before taking any of my ETH. I tested on ...
cormacncheese's user avatar
1 vote
0 answers
166 views

Hardhat deployment to mainnet

I am preparing for a smart contract deployment to mainnet and I plan on using hardhat. I am trying to find out if there is a dry run style deployment that will simulate the deployment without ...
nftley's user avatar
  • 11
1 vote
1 answer
192 views

How much can I trust on the truffle test gasUsed value?

I'm trying to guarantee that I'm not going to require more than the 200k gas limit on VRF fulfillrandomness call. I'm running the truffles test and they present to me gasUsed on the txn value of the ...
Pedro Braga's user avatar
1 vote
2 answers
722 views

Deploying a simple contract to ETH Mainnet (from remix) costing $500? Am I doing this wrong?

I have a simple contract that I've tested on my ganache network, and now I'd like to push it to the mainnet. So I funded my Metamask with around $100 or 0.025 eth, figured that would be enough to ...
JDS's user avatar
  • 178
1 vote
3 answers
2k views

Can you deploy contracts to the mainnet with remix.ethereum?

As the title. Is it possible to deploy your .sol directly to the mainnet with e.g. MetaMask? What options do I pick in remix 'deploy' to do this? Once it is deployed, what is the simplest way of ...
JDS's user avatar
  • 178
1 vote
2 answers
2k views

Why is gas fee of mainnet higher than testnet?

I've seen on a question that the gas fee of mainnet and testnet is the same while deploying a block on chain ethereumstackexchange. But, I'm facing some mismatch with this info. The issue is that, ...
Maruf's user avatar
  • 23
0 votes
1 answer
234 views

What are the Benefits of running an Ethereum Full Node if you are not mining?

As stated in the title, what is the direct or indirect benefit i stand to gain from running a full node on the Ethereum mainnet or Testnet I know Nicholas has a brilliant answer here, but it's about 5 ...
Muhammad Yasir's user avatar
0 votes
1 answer
619 views

Out of Gas error on deploying a contract on mainnet with enough ethers in account

I am facing issues while deploying my contract on the main net. I have tried the below contract deployment on rinkeby and ropsten without any issue. But when I am deploying this contract to the ...
wolvorinePk's user avatar
0 votes
2 answers
174 views

Whats needed to complete my contract token for this BEP20?

I'm trying to figure out if the 80% of the total supply is allocated to the network? and if there are any fundamental things I am missing here? // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; ...
tay's user avatar
  • 1
0 votes
1 answer
20 views

How can a smart contract deployed on Mainnet know if it is running on PoW or (in the future) PoS?

I'd like my smart contract to know if it's running on PoW or (in the future) PoS in Mainnet. Does checking for block.difficulty solve the problem? If so, what will be the value of block.difficulty ...
vrde's user avatar
  • 151
0 votes
1 answer
326 views

How to add Polygon (Matic) to MetaMask?

Metamask has mainnet installed, while testnets are hidden by default. But what details are required when adding a custom network to connect to the Polygon (Matic) network via Metamask? Are there any ...
user610620's user avatar
  • 1,528
0 votes
1 answer
242 views

Where do I place the code from the Uniswap tutorial?

I'm following this Uniswap tutorial. I have set up a project following the First Steps instructions. Within that project, I also set up a Hardhat project and I've forked the mainnet, which I can use ...
Pointer_to_void's user avatar
1 vote
0 answers
11 views

Why do an initial ERC-20 offering on a testnet instead of Mainnnet?

Why would someone launch an ICO to an Ethereum network other than Mainnet, i.e. testnets? Are there any technical or philosophical reasons why someone would not choose Mainnet to launch a new ERC-20 ...
user610620's user avatar
  • 1,528
0 votes
1 answer
2k views

How do I use web3.js to read (balanceOf) an upgradable ERC20 smart contract?

I'm trying to programmatically read an upgradeable smart contract (USDC token) on Polygon and on Ethereum mainnet, using javascript (web3 1.6.0 in a nodeJS v14 environment) and multiple websocket ...
bluegreen's user avatar
  • 101
0 votes
0 answers
110 views

Using Geth with External Drive

I'm using the command geth --http --datadir D:\NODE but it seems like It's a wrong command, because when I switch to Localhost network on my Metamask it doesn't show the balance but when it's on ...
draven's user avatar
  • 1
0 votes
0 answers
756 views

Deploying to ETH mainnet with Remix Gas Fees

When deploying with Remix to ETH mainnet, is it fine to leave the max gas fee as Remix suggests? It seems to be low and I don't want the deployment to fail. Metamask suggests a much higher gas fee. It ...
Aric Kuter's user avatar
2 votes
2 answers
4k views

Verify contract not working (not match bytecode)

Contract: https://etherscan.io/address/0xec16fed4f619aacd70c7db48327d362f675bfc29 Contract.sol // SPDX-License-Identifier: MIT pragma solidity >=0.4.22 <0.9.0; import "@openzeppelin/...
GIA's user avatar
  • 136
0 votes
1 answer
121 views

"Migrations" ran out of gas after x blocks mainnet

I trying to deploy my contract but I cant. After deployed in ropsten and development, for some reason I can't deploy to mainnet. Truffle v5.3.3 (core: 5.3.3) deploying... after compilers compilers: {...
GIA's user avatar
  • 136