Questions tagged [mainnet]

The tag has no usage guidance.

24 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
1answer
653 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 ...
2
votes
0answers
26 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
0answers
163 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 ...
1
vote
0answers
182 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 ...
1
vote
0answers
317 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
6 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 ...
0
votes
0answers
65 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: ...
0
votes
0answers
16 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 ...
0
votes
0answers
30 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
1answer
49 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 ?
0
votes
0answers
292 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
49 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 ...
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
213 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
96 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 ...
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 ...
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
540 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
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 ...
0
votes
0answers
171 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
338 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
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 ...