Questions tagged [mainnet]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
46 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
25 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 ...
1
vote
1answer
39 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
15 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
18 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
28 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
23 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
45 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
21 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 ...
0
votes
0answers
285 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
41 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
12 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
97 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
14 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
207 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
13 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
1answer
95 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
293 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
74 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
155 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
40 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
193 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
136 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
74 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
39 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
524 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 ...
1
vote
2answers
321 views

Unable to Deploy/Migrate to Mainnet via Truffle/Infura

On 12/26/2020 I successfully compiled, migrated and tested on Ropsten via Truffle the following contract https://github.com/estudios-amazonia/FilmVault/blob/main/contracts/FVP_Token.sol. See Ropsten ...
0
votes
1answer
28 views

Ethereum contract size limit for multipage contract

I got to know that there is a size limitation for Ethereum contract, but to avoid this I split up functions of my contract in two sol files and one contract extends other contract and this solve the ...
0
votes
1answer
62 views

Adding Token to Uniswap

I was just wondering, how would I get my token (lets say abcToken) to both, pair with ETH -> abcToken/ETH, & implement a swapping function for abcToken/ETH on Uniswap? Will I need to implement ...
2
votes
1answer
2k views

Impersonating accounts on a forked Ethereum main net using Hardhat

I used the example from the Hardhat docs to impersonate an account on a forked network: await hre.network.provider.request({ method: "hardhat_impersonateAccount", params: ["0x...."]...
1
vote
0answers
178 views

Revert error when sending ERC20 token on Ethereum mainnet fork

I am trying to send an ERC token (USDC) on the Ethereum Mainnet fork made with ganache-cli --fork. The transfer is made from the unlocked account that has both ETH and USDC balances available to the ...
4
votes
2answers
2k views

geth mainnet fast sync appears stuck at around 100 blocks from highestBlock

I started syncing a geth node to the mainnet in fast sync mode 7 days ago. The status is still around 74 blocks behind the highestBlock, e.g. if I run the following: eth.syncing.highestBlock - eth....
0
votes
1answer
264 views

how to deploy a smartcontract on the mainnet

I used truffle to create a smartcontract, and then deployed it on Rinkeby (using a local geth node) with this command. It works well. truffle migrate --network rinkeby The smartcontract is an updated ...
0
votes
1answer
124 views

contract deployment fine on rinkeby but pending on mainnet

I deployed smart contract on rinkeby using web3 script and it works fine, actually deployed many times. Today I tried to deploy on main net and transaction is pending since 40 mins, gas limit is ...
0
votes
0answers
167 views

gas estimation about tests on Ganache forked mainnet

I come up with this solution with gas estimation. Could someone help check whether it is feasible? If we want to send a transaction, first, we just fork the newest mainnet blockchain using ganache-...
0
votes
1answer
68 views

Different block information for the same block number at different times

On web3.eth.subscribe('newBlockHeaders') I get notification and trying to get last block via saved block number earlier. It was happen with 9559839 block number on mainnet. First, I was get data with ...
0
votes
1answer
57 views

GasPrice: is dipendent by the moment of the call and/or the network?

I'm testing a system to store a small amount of data on the blockchain using a contract. So I've some js using web3.js to make a call to a contract function that mutates states. I obtained, using ...
2
votes
1answer
670 views

How to fork current eth mainnet chain in new private blockchain from block #####

I want to run my own eth fork from mainnet (keeping history of transactions, balances & etc). How can I start my new geth instance that will start working after ###### block of mainnet chain? I ...
0
votes
0answers
334 views

How much more it will take for Ethereum wallet to Sync - 2019

I has been a week when I tried to Sync Ethereum on SSD VPS. Here are the details - Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): ...
2
votes
1answer
685 views

Who confirms Ropsten and Rinkeby transactions?

Basic or more like "fundamental" question I guess: So if I got that right, each time someone runs Geth/Parity or other software they all become part of the EVM (ethereum virtual machine). However ...
0
votes
1answer
70 views

Crowdsale contract working properly on all testnets but not on mainnet

I never across on this kind'f problem. I have deployed a contract on testnet (rinkeby, ropsten and TESTRPC). My contract is working fine here. But than the same contract is deployed on mainnet and now ...
0
votes
1answer
27 views

Is QTUM is a coin or a Token?

According to Etherscan Qtum is a Token, holding supply with verified smart contract. But its official site contains its own protocol and integration mechanism. Is it still a token under ETH or it has ...
1
vote
0answers
312 views

Truffle test including mainnet contract - Error: Cannot create instance of Whitelist; no code at address

Problem with the error Error: Cannot create instance of Whitelist; no code at address 0x6198149b79AFE8114dc07b46A01d94a6af304ED9 How do I have to setup truffle so that I can run a test which includes ...
0
votes
0answers
250 views

Truffle how to test with reference to mainnet smart contract - Error: while migrating VM Exception while processing transaction: revert

I would like to run a truffle test on a smart contract that includes a smart contract address deployed on mainnet. However, this results in the following error Error: Error: Error: while migrating ...
5
votes
1answer
649 views

web3.eth.getBlock returns null

I have a very similar problem as https://github.com/paritytech/parity-ethereum/issues/8788 When I use web3.eth.getBlock for the first 1 million and latest 50,000 blocks (approximately), I get the ...