blocto / solana-go-sdk

Solana Golang SDK
https://blocto.github.io/solana-go-sdk/
MIT License
349 stars 86 forks source link

How to create a wallet #136

Open nikitavoloboev opened 1 year ago

nikitavoloboev commented 1 year ago
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?

yihau commented 1 year ago

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)