Questions tagged [mainnet]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
11 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
2answers
19 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
2answers
64 views

Why gas fee of testnet is higher than mainnet?

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
1answer
33 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
1answer
43 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
0answers
33 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
2answers
39 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
0answers
9 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
1answer
12 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
1answer
82 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
0answers
15 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
1answer
42 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
0answers
24 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 ...
0
votes
0answers
4 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
0answers
16 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
0answers
122 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
0answers
19 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
0answers
13 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
0answers
35 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
0answers
82 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 ...
0
votes
1answer
75 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
1answer
42 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
0answers
23 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 ...
3
votes
0answers
718 views

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

So Im 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 im running into problems. my code looks like this: ...
2
votes
0answers
79 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 ...
2
votes
1answer
227 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
0answers
54 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
1answer
22 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
0answers
42 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
2answers
28 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
1answer
80 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
1answer
22 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 ...
1
vote
0answers
515 views

Transaction Underpriced at gas price less than 10Gwei on Binance Testnet

I am working on BEP20 token which I eventually want to deploy on the Mainnet. I have currently deployed the token on the Testnet. I am using metamask as my wallet. When I interact with the contract ...
0
votes
1answer
213 views

The cost of eth in the testnet is equal to the eth cost in mainnet?

i´m new in Ethereum development, i´m developing a Dapp in the Ropsten testnetwork but i need to pass it to the mainnet, have the sames cost? are equivalent in the moment we pass the Dapp to the ...
1
vote
0answers
14 views

Is necesary pass a Dapp to mainnet or in testnet is ok for a production smart contract process? [duplicate]

Because the client Dapp propietary don´t have real Ether, only Ropsten test Ether via faucet.ropsten.be/ is necesary buy Real Ether to preserve smart contracts in ethereum or in Ropsten testnetwok is ...
0
votes
1answer
278 views

code to activate Eth amount from Ropsten network to Main network

I have 2 issues with my Ethereum at Metamask. I received 1 Eth from someone in Africa, sent to Metamask, but he sent to Ropsten network, not to Main network. He asked me to send Dagcoins first and ...
0
votes
0answers
15 views

How to test contract interactions without pay fee

I have my contract which interacts with two different exchanges, can i test this interaction without pay fee? Before Deploy to the main net? I know it has Ropsten but it wouldn't work i think, i need ...
0
votes
1answer
433 views

How NFT image assets are combined?

How do NFT projects combine their assets with all possible combinations? e.g. Cryptokitties: you have like 10 skin colors, 10 eyes shape ...etc. to combine these assets, you get let's say 10000 ...
0
votes
0answers
15 views

How to replace on going mainnet deployment?

I'm using truffle to deploy my contracts on mainnet. I need to replace a deployment transaction by manually setting nonce. I couldn't find a way to use nonce on truffle deployer. Is there any method , ...
0
votes
2answers
129 views

Ethereum network Sync up with Matic network

We are able to deploy our ERC20 token into Matic Network and it is working fine. But we have few questions here to understand how Matic works with Ethereum Mainnet Once the contract is deployed in ...
1
vote
1answer
423 views

Is there any version of AAVE protocol deployed on polygon/matic testnet?

As AAVE documentation suggests, there is a deployed version of the protocol on matic/polygon mainnet. However, it does not make any mention of those smart contracts on Mumbai testnet which I need to ...
0
votes
0answers
78 views

Are binance ERC20 token transactions not on the ethereum blockchain?

I'm using web3js get transaction info on a specific ETH address. When I make the getTransactions call, no info is presented. I then check etherscan and also see that my binance ETH wallet (for ...
1
vote
0answers
346 views

Cannot access deployed smart contract on mainnet

I tested my contract code on the Ropsten test network and everything seemed to work fine. I was able to run all my scripts and call functions on the contract on Ropsten. I then proceeded to deploy to ...
0
votes
0answers
14 views

Can I call the testnet contract's view from the main-net contract? [duplicate]

The question may be silly, but it is something I want to play around and experiment with. I want to call the view function that exists on the test-net from the main-net contract. Can we do this, and ...
0
votes
1answer
51 views

Is it possible to communicate between ethereum smart contract and binance smart chain contract?

I would like to call a function in the Binance smart chain contract from my ethereum mainnet smart contract is this possible?
0
votes
1answer
368 views

Error when deploying contract to Mainnet but not Testnet

I built and have tested a contract on the Ropsten testnet but when I tried to deploy to the mainnet the transaction was reverted. not sure what the reasoning was I tried not spending all that much to ...
3
votes
3answers
157 views

What if a chain is compromised?

I have deployed a dApp on a sidechain (namely xDai) and am worried about its security. What happens if an EVM chain is compromised? Will it be rolled back after a few hours? or what? If the mainnet is ...
0
votes
1answer
107 views

Main Net RPC IP

I am trying to fork Ethereum Main Net via Ganache. In order to do this, I need The URL of the existing chain's RPC server. Nevertheless, I can't find such URL anywhere. Can anybody suggest such URL?
0
votes
0answers
65 views

trying to send some tokens from unlocked account

So I'm trying to send some tokens from an, with ganache-cli unlocked, address to mine to try something out, however for my code to work I need some starting amount of the initial token. Is there some ...
0
votes
1answer
806 views

Hardhat Can't resolve 'console' on react project

I have a react project and initialized hardhat config then installed the necessary packages but I am getting error when I require hardhat on my project const hre = require("hardhat"); This ...