Hot answers tagged

137

Ropsten Proof-of-Work (Ethash) Supported by Geth, Besu, and all other Ethereum clients Best reproduces the current Ethereum production environment Chaindata size 15 GB - Apr 2018 Kovan Proof of Authority (Authority Round) Supported by OpenEthereum and Nethermind only Chaindata size 13 GB - Apr 2018 Rinkeby Proof of Authority (Clique) Supported by Geth, ...


20

There are other (test-)networks as well, as described in this SO answer, copied here with their network id numbers: 0: Olympic, Ethereum public pre-release testnet 1: Frontier, Homestead, Metropolis, the Ethereum public main network 1: Classic, the (un)forked public Ethereum Classic main network, chain ID 61 2: Morden, the public Ethereum testnet, now ...


13

For rinkeby, just type geth --rinkeby from command prompt and you're in


11

From the documentation: var contractInstance = MyContract.new([constructorParam1] [, constructorParam2], {data: '0x12345...', from: myAccount, gas: 1000000}); Yes, you can just add a gasPrice to that object: var contractInstance = MyContract.new([constructorParam1] [, constructorParam2], {data: '0x12345...', from: myAccount, gas: 1000000, gasPrice: ...


11

I fixed the similar error by deleting .json files from build/contracts folder and then running truffle migrate in the terminal. However, the error occurred in Visual Studio Code, not Remix IDE. It appeared after running truffle migrate --reset.


9

Morden: a subway station in London Ropsten: a metro station in Stockholm Rinkeby: a metro station in Stockholm Kovan: a subway station in Singapore Testnets are named after train stations as a convention, usually where the respective testnet maintainers are based from. sources: 1, 2


9

How did you get the bytecode? Does it have the '0x' at the beginning? Can you try adding the '0x' when submitting the transaction? .deploy({ data: '0x' + bytecode, arguments: ['Hi there!'] }) If you put '0x' in front of the bytecode it will assume the rest is in hexadecimal and left it alone. If there's no '0x' it will convert the whole string to ...


9

This line ... nonce: window.web3.utils.toHex(window.web3.eth.getTransactionCount(fromAccount)), ... relies on a reliable transaction count from Infura. The problem is it's not as reliable (or even close) as you need it to be. This method will produce unreliable, inconsistent results as you have observed. Some background will help explain what is going on ...


8

What makes Rinkeby a "testnet"? I understand it's a parallel network so my ether there has no effect on the mainnet ether. But how is it different technically? Rinkeby is a Proof-of-Authority network, so uses a different consensus mechanism to the main net. The Ropsten testnet is Proof-of-Work, so more similar to the public main net. But does it still ...


7

For Kovan: parity --chain kovan it won't be possible to connect to Rinkeby with parity, only with geth. Rinkeby with geth: geth --rinkeby


7

I added '0x' + in front of the bytecode in the .deploy to make it Work. .deploy({ data: '0x' + bytecode, arguments: ['Hi there!'] }) If there's no '0x' the bytecode will convert the whole string to hexadecimal, which will be double the size and throw the gas error. I also re-installed truffle wallet provider using $ sudo uninstall truffle-hdwallet-...


7

I got help from Veniamin. I had error "Error: Couldn't decode from ABI: 0x." when call get request with wrong contract address I made a mistake... I was using 'account address', instead of 'contract address'! The code works, once correct 'contract address' was used.


6

RinkedBy official faucet uses 3rd party social network to prevent malicious actors. You only need to go to this page and for example tweet the following: Requesting faucet funds into 0x***YOU_ADDRESS***************** on the #Rinkeby #Ethereum test network. Then, copy-paste the link of you tweet into the faucet page and select the amount of ether you want. ...


6

Rinkeby doesn't run Proof of Work, it runs Proof of Authority. This means there are no miners. The people that create blocks are pre-authorized nodes. It's a network where pre-selected and trusted people are allowed to create the blocks.


6

When you sync your node, It fetches data previously written on the Blockchain. Hypothetically, let's say that: Node is currently syncing and had fetched the 100 first blocks the first time your account was transferred some tokens were at the block 1000 In this scenario, at that precise point, if your node is still syncing, it won't have enough data to say ...


5

Parity does very well support proof of authority, but it does not implement the Clique engine required to join the Rinkeby test network. It just wont work out. If you want to join a PoA testnet, you can still use Kovan: parity --chain kovan


5

The test-nets (such as Rinkeby) can be thought of as an alternate dimension for all intents and purposes. They are a place to run experiments without modifying the real Ethereum network. The ether there isn't worth anything, but your mistakes there also don't have consequences. If you die on Rinkeby, you don't die in real-life ;)


5

If you kill the geth instance or it crashes, it won't write the latest status of the cache, and will be forced to drop the "fast" sync state and fall back to the last "full" state on next startup. Graceful shutdown options: SIGINT, SIGTERM, Ctrl+D (if run with a console), Ctrl+C1 Unsafe shutdown options: SIGQUIT, SIGKILL, Windows' [X] button First make ...


5

I checked https://www.rinkeby.io/#stats a few minutes ago. There was a problem with validators. To few were online. Now it runs again.


4

You will not receive ether sent from a testnet to your Coinbase account, which is connected to the mainnet. They are separate Ethereum instances and have separate ledgers.


4

You have to use either the --chain or --networkid options, depending on your client. The Kovan network is only available when using the Parity client. From the Parity --help output: --chain CHAIN Specify the blockchain type. CHAIN may be either a JSON chain specification file or olympic, frontier, ...


4

This isn't an coding error, you just havn't the 1 eth you try to send. And your GETH isn't in Rinkeby, you are in main network : Network Id: 1 This is the id for main network. Rinkeby is 4. You can start geth with --rinkeby, it will automaticaly change network id, genesis, ...


4

All the details are documented here: https://github.com/ethereum/EIPs/issues/225 In short, the facts for a system with N sealers: every block has a preferred sealer (in-turn signing), which will set the block difficulty to 2 if the preferred sealer does not sign the block, other sealers can jump in (out-of-turn), but they can set the block difficulty only ...


4

Solution Insert a special middleware in web3.py to handle geth-style proof-of-authority, like this: py> from web3 import Web3, IPCProvider # connect to the default geth --dev IPC location py> w3 = Web3(IPCProvider('/tmp/geth.ipc')) py> from web3.middleware import geth_poa_middleware # inject the poa compatibility middleware to the innermost ...


4

To have MetaMask recognise the signature of your function, you need to register is at: https://etherscan.io/address/0x44691B39d1a75dC4E0A0346CBB15E310e6ED1E86#writeContract This is where MetaMask pulls data to determine the function corresponding to a function hash. i.e. in your example, call the register function of the above contract, passing in: ...


4

Go to "https://app.compound.finance/" connect metamask using rinkeby test network In supply section select DAI -> Faucet


3

There is a small typo in the definition of function get. You should define only the return type string in the function definition, but no variable name (x). This should make it work: function get() public constant returns (string) { return rootHash; }


3

I checked your transaction and it failed. https://rinkeby.etherscan.io/tx/0xf0ce6f4c0a9665f593d3d837eca4977b85d011dcb3620bf3a2428d25225db967 That´s why getPizzas() is returning an empty array. Add funds to account[0] and unlock it and try again. It should work.


3

Both Kovan and Rinkeby have a gas limit of ~7 million, which is about 330 regular ETH transfers per block (21,000 gas each). Kovan has a ~4 second blocktime and Rinkeby has a ~15 second blocktime, so the tx/s for Kovan is ~80 and for Rinkeby is ~20. These are just based on the max gas/block. Since they are both PoA, they might impose their own artificial ...


3

There is no workaround besides of the links you´ve posted. It will depend of your CPU power, network and database. I believe they (etherscan team) gets data from the blockchain and stores in an indexed database and uses some analytics tools to display data to users.


Only top voted, non community-wiki answers of a minimum length are eligible