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 use a private key in this API? #218

Open
damlaHolo opened this issue Jan 25, 2023 · 1 comment
Open

How to use a private key in this API? #218

damlaHolo opened this issue Jan 25, 2023 · 1 comment

Comments

@damlaHolo
Copy link

Not sure if I am missing some documentation around this, if I am please point me to the right place.

I need to implement some features to the app I am building, I have managed to use Metaplex Solana.Swift HotAccount to create a wallet, and use its public key to retrieve NFTs. I have not managed to use a private key to, say, retrieve the account mnemonic phrase. Are these functions not available? If not, what should I be using?

I can see that there is a function called "SendSol". It seems to take in an account object presumably attached with private key? How does this process work? Where is the documentation I can use to investigate?

@ajamaica
Copy link
Contributor

ajamaica commented Feb 18, 2023

Use the HotAccount as an example and expand it if you want. Its impossible to retrieve a mnemonic phrase from a private key.

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