Closed satwikkansal closed 4 months ago
# generate random keypair keypair = Keypair() secret = keypair.secret()
Now how do I use this secret to get a private key that I can import into my Phantom wallet?
I tried using b58encode but it doesn't work, I'm sure I'm missing something silly but not sure what
I'm not sure what phantom wants but based on these docs my guess is either str(keypair) or str(secret)
str(keypair)
str(secret)
Thanks, str(keypair) works!
Now how do I use this secret to get a private key that I can import into my Phantom wallet?
I tried using b58encode but it doesn't work, I'm sure I'm missing something silly but not sure what