solana-go-sdk
solana-go-sdk copied to clipboard
How to create a wallet
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?
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)