Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Question on ganache about Address/Account generated #3111

Answered by MicaiahReid
AndyWaiHim asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @AndyWaiHim, excellent question! I agree that it can be confusing. I'll do my best to answer!

Ganache uses a twelve word mnemonic to generate 10 accounts on startup. These are valid Ethereum accounts, meaning that each generated account has a private key that can be used to sign transactions. When you are running truffle migrations on the Ganache network, Ganache verifies that the private key is valid for the account sending the transactions, and updates Ganache's VM state accordingly.

However, like I stated above, these are valid Ethereum accounts. Basically any 40-character hexadecimal string with "0x" in front of it is a valid address that can receive funds. If you want to waste som…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by AndyWaiHim
Comment options

You must be logged in to vote
1 reply
@MicaiahReid
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants