solana-go-sdk icon indicating copy to clipboard operation
solana-go-sdk copied to clipboard

How to create a wallet

Open nikitavoloboev opened this issue 1 year ago • 1 comments

wallet := types.NewAccount()

Above code as I realised does not actually create a useable wallet. It only generates an ed25519 keypair locally.

Is there example code for how to make a wallet ready for use?

nikitavoloboev avatar Jun 26 '23 18:06 nikitavoloboev

When you have the private key, you own the account. Could you elaborate "ready for use"?

(btw, there are some examples in https://portto.github.io/solana-go-sdk)

yihau avatar Jun 27 '23 03:06 yihau