Skip to main content
39 votes

What caused this error: Attempting to run transaction which calls a contract function, but recipient address is not a contract address

i´ve just used migrate --reset (without deleting /build) , and worked
IveltonQueiroz's user avatar
31 votes
Accepted

What caused this error: Attempting to run transaction which calls a contract function, but recipient address is not a contract address

As provided in comments by Mavlarn and ivicaa above, the answer is to delete the .json files under build/contracts/. Then the next run of truffle migrate no longer fails.
Alex Altair's user avatar
16 votes
Accepted

How to get pending transactions with using geth or other client?

To get the pending transactions you need a node that you're running on your own because this type of action requires a lot of resources. You can run your own Geth node and wait until it is ...
Daniel Luca CleanUnicorn's user avatar
12 votes
Accepted

Can chaindata be split across two (or more) locations?

Geth has a freezer as of v1.9 https://blog.ethereum.org/2019/07/10/geth-v1-9-0/ Freezer Wouldn’t it be amazing if we didn’t have to waste so much precious space on our expensive and sensitive SSDs to ...
eth's user avatar
  • 86.5k
11 votes

How do Ethereum clients generate unique addresses?

I think the most important phrase in your question is 'what is the likelihood'. The other answers are correct in determining that there is a 1 in 2^160 likelihood of finding a collision with 100% ...
bekah's user avatar
  • 1,099
9 votes

How to experiment with Ethereum without downloading the entire blockchain?

Creating a local in-memory blockchain (Ganache) with Brownie is recommended way for development. Besides Browser Solidity (as @Rob Hitchens recommended), you could also develop smart contracts using ...
alper's user avatar
  • 8,404
8 votes
Accepted

Consensus Client vs Execution Client

The Execution Client listens and executes transactions and maintains the latest state and database of all Ethereum data, while the Consensus Client provides consensus (using PoS algorithm) from ...
Yongjian P.'s user avatar
  • 4,308
7 votes
Accepted

How to switch from Morden to Ropsten?

Using Geth 1.5.3 and later, it's 2 steps: Run geth --testnet removedb to delete your blockchain database for the Morden network. Run geth --testnet ORIGINAL: When you use geth init, the datadir ...
eth's user avatar
  • 86.5k
6 votes
Accepted

Is there any working zk-snark implementation (even if experimental) among the existing Ethereum clients?

Please find the zksnarks solidity code: https://gist.github.com/chriseth/f9be9d9391efc5beb9704255a8e2989d The transaction can be seen on Etherscan and was made on the testnet.
sunwarr10r's user avatar
5 votes

Which database(s) do the ethereum clients use and why?

Parity is using RocksDB as it's database. From reading here it seems the reason for choosing it was performance. Faster than LevelDB in their tests. Lately though they have hit some performance ...
NoMan'sLand's user avatar
5 votes
Accepted

Generate contract address using nonce

Others can add other answers, but pyethereum is still active and this type code doesn't change: def mk_contract_address(sender, nonce): return sha3(rlp.encode([normalize_address(sender), nonce]))[...
eth's user avatar
  • 86.5k
5 votes

How to experiment with Ethereum without downloading the entire blockchain?

You can connect to a remote ethereum node such as INFURA, using the JSON RPC API, so you won't need to worry about maintaining and synchronizing a local node. You can see this guide about using ...
hhh's user avatar
  • 2,381
5 votes

Will a smart contract get deleted once Geth's console is closed?

No. A deployed contract on a blockchain does not get deleted when Geth's console is closed. Restarting the Geth Javascript console requires variables, like greeter, to be re-initialized because the ...
eth's user avatar
  • 86.5k
5 votes
Accepted

Writing contracts without fully syncing blockchain

If you want to start coding smart contract this is a quite smooth environment to set up: Use Remix online IDE for coding and link it with your local node Download testRPC on your PC and run a local ...
Paolo Guerra's user avatar
4 votes

Is there any working zk-snark implementation (even if experimental) among the existing Ethereum clients?

My answer is a fairly dumb one, as I've only had a look around in the code, and I haven't looked into zk-SNARKs properly yet, so apologies in advance if it's no help. The cpp-ethereum implementation ...
Richard Horrocks's user avatar
4 votes

How to experiment with Ethereum without downloading the entire blockchain?

You can work with Browser Solidity. It let's you experiment with Smart Contracts, compile them, run them and debug them using an in-memory execution environment (default), or the real thing. https://...
Rob Hitchens's user avatar
  • 55.6k
4 votes

How do you stop a running geth node?

Simply use pkill -INT geth which will reuslt in the same as pressing CTRL-C in geth console: ... INFO [01-13|12:17:53] Imported new chain segment... INFO [01-13|12:17:57] Got interrupt, shutting ...
Evil.2000's user avatar
4 votes
Accepted

Trace transaction with Go client

Transaction tracing is not exposed via ethclient. You must connect over the regular rpc and invoke it as a regular call. The reasoning for that is given here.
Raghav Sood's user avatar
  • 4,060
4 votes

Will Eth 2.0 be implemented in geth (go-ethereum) or will it run on a new client?

Ethereum 2.0 is already being implemented according to the current specification by the teams mentioned in the Coindesk article. Some of the implementations are: prysm by PrysmaticLabs, as far as I ...
hugo_dc's user avatar
  • 41
4 votes

Will Eth 2.0 be implemented in geth (go-ethereum) or will it run on a new client?

Ethereum 2.0 will be much different from the legacy Ethereum. ETH1 In 2015, Ethereum launched with 3 official clients funded by the Ethereum Foundation. Go-Ethereum (Geth) C++-Ethereum (Eth) ...
q9f's user avatar
  • 33k
4 votes
Accepted

Differences between Quorum and Pantheon

There are 2 main differences: Besu is a more generic client that support Ethereum mainnet and is written in Java Quorum is a fork of geth (go-ethereum, the most used client for ethereum). It does ...
fixanoid's user avatar
  • 1,627
4 votes
Accepted

Run Execution Client without Consensus Client

You need to run both: a consensus layer (CL) client with an execution layer (EL) client, because EL clients like Geth, do not have consensus implemented. Currently, EL clients do not know directly ...
eth's user avatar
  • 86.5k
3 votes

How to switch from Morden to Ropsten?

In your second call there is a space between -- and datadir, so probably you are running geth with the wrong data directory and therefore you are using the wrong genesis block. Try running geth --...
phlogratos's user avatar
3 votes
Accepted

How to manually switch Mist to Ropsten?

You need to use the correct relative path or absolute path for your genesis JSON file. Relative path would be: geth --datadir ./Library/Ethereum/testnet init ./Library/Ethereum/testnet/...
q9f's user avatar
  • 33k
3 votes

Generate contract address using nonce

In golang, use ethereum/go-ethereum/crypto.CreateAddress. func CreateAddress(creator common.Address, nonce uint64) common.Address
updogliu's user avatar
  • 141
3 votes

How do Ethereum clients generate unique addresses?

Ethereum uses addresses that are 160 bits long. The chance that any one address is the same as any other given address is therefore 1 in 2^160. However, due to the birthday paradox the chance that a ...
Steve's user avatar
  • 346
3 votes

Writing contracts without fully syncing blockchain

Sure, use https://www.myetherwallet.com/#contracts to deploy a contract and use online solidity to write it and compile: https://ethereum.github.io/browser-solidity/
xgabrielx's user avatar
  • 846
3 votes
Accepted

Why don't wallets use web-based APIs instead of downloading entire blockchain?

As mentioned by others, the problem with APIs is that they are centralized sources of information. This basically eliminates the single most important value-proposition of the blockchain. This is, ...
fspmarshall's user avatar
3 votes
Accepted

Why is the Rinkeby testnet only available when using geth and Kovan only available when using Parity?

Both Rinkeby and Kovan are "Proof of Authority" (PoA) networks - unlike the Mainnet which is a Proof of Work, consensus, network. The Kovan PoA consensus algorithm was created by the Parity team and ...
SteveJaxon's user avatar
  • 2,538
3 votes
Accepted

How ethereum nodes sync with each other?

Currently, when a user submits a transaction that transaction is then sent to all their peers, which in turn send it to all their peers, etc. Within seconds every active full node in the Ethereum ...
jojeyh's user avatar
  • 769

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