Questions tagged [mainnet]
The mainnet tag has no usage guidance.
84
questions
1
vote
0
answers
8
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 ...
0
votes
0
answers
20
views
Deploying to Ethereum Mainnet
I was trying to deploy my DAPP to the Ethereum Mainnet platform, but when I try to deploy my contract it says insufficient funds even though my account has ether on it. What could be the problem?
0
votes
0
answers
9
views
Cannot connect to mainnet ethereum network on localhost
I am on a new project and launched it on localhost with my own infura api key but its getting network error (Ethereum Mainnet). Am I missing something?
0
votes
0
answers
14
views
No access to "Write Contract" functions after verification
So, I have the following (I've removed imports and license for readability):
contract PreSale is Ownable{
address coinContract = 0x0012334567890;
event TransferSent(address from, address to, ...
0
votes
0
answers
8
views
What is the difference between polygon-ethereum relationship and solana-ethereum?
I understand that side chain has some kinda 2 way connection with its mainnet. But for this connection is it inheriting something more or What is actually happening?
I mean can we distinguish the ...
0
votes
1
answer
34
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 ...
0
votes
0
answers
29
views
When was the 5 ETH block reward for Mainnet/Frontier launch decided on?
Having scoured the Ethereum foundation blog, I cannot find a post where the initial 5 ETH block reward was decided on. I am aware of the 0.26X of pre-mine sale which was given, but this does not = 5 ...
0
votes
3
answers
312
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.
...
0
votes
0
answers
28
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 ...
0
votes
0
answers
33
views
How to query all erc-20 contract addresses
Is there an easy way to search the chain (or maybe an off-chain source) for a list of all erc-20 tokens?
Similar to how etherscan did it here
0
votes
0
answers
31
views
How to connect geth to public ethereum node?
Since running my ethereum is quite difficult, I am trying to connect to some public mainnet node api.
I found that infura offers free mainnet api. However, I couldn't figure out how to connect geth to ...
0
votes
0
answers
39
views
How can I deploy a contract using hardhat to ethereum mainnet
My first trial, gave a pending status on etherscan which stayed for about 17hours before I canceled the transaction.
https://etherscan.io/tx/...
0
votes
0
answers
20
views
What are the differences between the Opera’s evm on the Fantom blockchain and the Ethereum’s mainnet blockchain ? Or how to deploy a contract at 0x0?
Opera is the Ethereum compatibility layer for the Fantom blockchain. Their team is claiming it’s a copy of the original go Ethereum implementation without the originally planned enhancements.
However, ...
1
vote
0
answers
154
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 ...
0
votes
1
answer
20
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 ...
1
vote
0
answers
68
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 ...
1
vote
1
answer
64
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 ...
1
vote
2
answers
239
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 ...
0
votes
0
answers
113
views
Fast forwarding time in hardhat testing?
My contract is calling a method on a different contract to track how the response changes. I am unit testing with a forking mainnet network in hardhat, which allows me to interact with that other ...
0
votes
2
answers
528
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 ...
0
votes
2
answers
905
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, ...
0
votes
1
answer
112
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 ...
0
votes
1
answer
175
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 ...
0
votes
0
answers
137
views
Could not interact with contract in BSC mainnet but succeed in testnet (but still a standard transfer)
I may send raw transaction by sendSignedTransaction to contract address on BSC testnet, and it succeed but this is just a standard transaction; it's not contract call like I want.
But on BSC mainnet, ...
0
votes
2
answers
88
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;
...
0
votes
0
answers
17
views
When comparing exchange token values, why don't the values change over time?
I setup and ran the price comparison Node.JS bot from https://github.com/dappuniversity/price-bot and followed Gregory's setup directions from https://www.youtube.com/watch?v=77G_-cMayRU.
I have ...
0
votes
1
answer
14
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 ...
0
votes
1
answer
218
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 ...
0
votes
0
answers
72
views
How do I start a light Ethereum Node on Android?
I would like to program an android app which has a built in light-node with its own JSON-RPC API and connected to mainnet.
Does anyone know if this is possible?
0
votes
1
answer
158
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 ...
0
votes
0
answers
36
views
Can MetaMask connect to other blockchains besides Ethereum?
MetaMask is a web browser extension that allows users to connect to the Ethereum network called Mainnet. This network is essentially the Ethereum blockchain. Can MetaMask also connect to any other ...
1
vote
0
answers
8
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 ...
0
votes
0
answers
37
views
iam getting brownie compiler error while running lottery in brownie test network
PS E:\smartcontract-lottery> brownie test --network mainnet-fork
INFO: Could not find files for the given pattern(s).
Brownie v1.16.4 - Python development framework for Ethereum
Compiling contracts....
0
votes
1
answer
626
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 ...
0
votes
0
answers
36
views
is the transactions cost in rinkeby test network reflect the same cost of main ethereum network?
I estimate the transaction cost in Rinkeby network and I think about if it reflects the same value in Mainnet ?
0
votes
0
answers
38
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 ...
0
votes
0
answers
52
views
Why did this txn fail? Gas Limit 2x and Price 1.3x, but 'Out of Gas'
I deployed a solidity contract to rinkeby, then mainnet.
The same transaction that succeeds on rinkeby, fails on mainnet due to "Out of Gas". The contract and client are the same. On the ...
0
votes
0
answers
301
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 ...
1
vote
1
answer
809
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/...
0
votes
1
answer
92
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: {...
0
votes
0
answers
41
views
Running InstaDApp on an ETH mainnet fork
I have been unable to get a straight answer about building and setting up an InstaDApp account on a mainnet fork using Hardhat (which is providing the account keys). I've used both Alchemy and Infura ...
7
votes
3
answers
2k
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:
...
2
votes
0
answers
183
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 ...
3
votes
1
answer
544
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
0
votes
0
answers
129
views
How to check if swap was successful?
This is a part of my payable function that is causing a problem. What happens is we receive Eth and swap it to a specific token. It works great in testnet. But on mainnet the "require" check ...
1
vote
1
answer
35
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 ...
0
votes
0
answers
52
views
Main DApp on L1 , NFT minting on L2
I have developed DApp on L1 and because of high fees I made ERC721 token on L2(Polygon). When someone calls for example reward function from L1 contract, I just want to mint an NFT on Layer2 and set ...
0
votes
2
answers
40
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.
0
votes
1
answer
110
views
Can you directly port ETH mainnet contract to BSC?
Can you directly port ETH mainnet contract to BSC ? Also, does Infura work with BSC ? Does Web3 work with BSC ?
1
vote
1
answer
26
views
How do we call the standard coin of a certain mainnet?
In ethereum, we use ether to pay gas.
And ether is the main coin of ethereum mainnet.
In BSC, BNB is used to pay gas.
And BNB is the main coin in BSC, something like the main coin of that chain.
I ...