Golang – How to Create Ethereum Account

accountsgo-ethereumgolangwallets

I want to create ethereum account using golang. I am following this guide but I am stuck with errors just at the beginning of code.

accountManager:=accounts.NewManager(".ethereum/rinkeby/keystore",accounts.StandardScryptN, accounts.StandardScryptP))

Error : Unresolved Reference "accounts.StandardScryptN" & "accounts.StandardScryptP"

Best Answer

I think the guide is out of date.

StandardScryptN and StandardScryptP are now in the keystore package, not the accounts package. You'll need to update your import accordingly.

Related Topic