Questions tagged [mainnet]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
11 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
38 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
0 votes
2 answers
462 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
17 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
13 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
758 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
474 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
  • 35
0 votes
1 answer
246 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
274 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
0 answers
136 views

"contract creation code storage out of gas" always getting this error while deploying on eth mainnet

I'm trying to deploy this simple NFT contract https://github.com/NishantPacharne/new-contract/blob/main/contract.sol .. I was able to deploy correctly on goerli testnet https://goerli.etherscan.io/tx/...
Nishant Pacharne's user avatar
0 votes
1 answer
35 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
57 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
2 answers
843 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
51 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
394 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,498
1 vote
2 answers
237 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
299 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
164 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
833 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
133 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
14 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
129 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
312 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
153 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
87 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
333 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
46 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
144 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
180 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
626 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
  • 158
0 votes
3 answers
1k 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
  • 158
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
223 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
580 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
170 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
321 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,498
0 votes
1 answer
235 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,498
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
733 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
1 answer
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
  • 137
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
  • 137
12 votes
4 answers
6k views

hardhat mainnet forking and impersonating an account isnt working, help!

So I'm trying to fork the mainnet using hardhat, impersonate a Dai whale, and transfer its Dai to a hardhat wallet for testing a smart contract, but I'm running into problems. My code looks like this: ...
Nolan Jannotta's user avatar
2 votes
0 answers
461 views

Why does web3 say the transaction hasn't been mined in 750 seconds when the blockchain transaction says it was mined in 1:30 seconds

We keep getting an error from our node application with the following error: Transaction was not mined within 750 seconds, please make sure your transaction was properly sent. Be aware that it might ...
Chris Lomax's user avatar
3 votes
1 answer
932 views

Request multiple random number at once on chainlink VRF

Would it be possible to require more than one random number on the chainlink VRF with only one call to requestRandomness or any other function ? Thank you
Esyt's user avatar
  • 33
1 vote
1 answer
42 views

How to take advantage of the freeness of ethereum testnet and do simple ERC20 transfers on the mainnet when needed?

This is a very broad question. Currently we have our product running on the goerli testnet, it works fine and the clients are happy because it is fast and free. But our V2.0 takes into consideration a ...
Viktor.w's user avatar
  • 111
0 votes
2 answers
55 views

How can i obtain real ether in metamask (at the same manner i obtain ether from ropsten faucet in testnet) to create real transactions in mainnet?

How to obtain real Ether to create Transactions in mainnet via metamask? because i create transactions with ether from faucet.ropsten.be but this is not real ether.
alejza's user avatar
  • 1