Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to create a wallet #136

Open
nikitavoloboev opened this issue Jun 26, 2023 · 1 comment
Open

How to create a wallet #136

nikitavoloboev opened this issue Jun 26, 2023 · 1 comment

Comments

@nikitavoloboev
Copy link

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
Copy link
Collaborator

yihau commented Jun 27, 2023

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants