Questions tagged [mainnet]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4
votes
0answers
520 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 ...
3
votes
3answers
83 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 ...
2
votes
1answer
315 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 ...
2
votes
1answer
427 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 ...
1
vote
2answers
385 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....
1
vote
2answers
63 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 ...
1
vote
1answer
247 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...."]...
0
votes
1answer
15 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 ...
0
votes
1answer
35 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 ...
0
votes
1answer
51 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
1answer
27 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
40 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
26 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
12 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
0answers
76 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 ...
0
votes
1answer
24 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
33 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 ...
0
votes
0answers
63 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 ...
0
votes
1answer
110 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
0answers
18 views

Ethereum Logs since Beginning of Time

I can subscribe to all events in ethereum network (logs, pendingTransaction etc) so I can get only newly generated events (while I am subscribed). For my analysis I need to retrieve all logs from ...
0
votes
0answers
96 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
0answers
220 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): ...
0
votes
1answer
24 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 ...
0
votes
0answers
119 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
156 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 ...