1

How can I connect to Ganache so each time I add to the blockchain the transaction is stored in the next block. I have an issue that each time I add to the blockchain it gets added to the same block address. I am using React to add the date to the blockchain. However, I have init web3 with ABI and Address(which all the transactions are stored in).

3
  • 1
    I think typically Ganache mines a new block for each transaction - especially if there is some time delay between them. Also, I'm not sure what you mean with "block address", since blocks don't have an address. – Lauri Peltonen Mar 3 at 19:18
  • In ganache,there is a list of accounts each has it is own account address. There is a code that I am trying to follow but it is not working here: github.com/dappuniversity/eth-todo-list. Not sure why it is not working with me. I am thinking it is because of the node, npm, truffle verisons but not sure. – Heba Mar 4 at 7:53
  • You can set which address sends the transaction. How you do that depends on the libraries you are using. – Franco Victorio Mar 4 at 17:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.