michaelhly / solana-py

Solana Python SDK
https://michaelhly.github.io/solana-py
MIT License
979 stars 252 forks source link

how to export privatekey? #400

Closed viponedream closed 5 months ago

viponedream commented 6 months ago

it look not good.

kp = Keypair() sec = kp.secret() b = base58.b58encode(sec) print(b)

michaelhly commented 5 months ago

https://kevinheavey.github.io/solders/api_reference/keypair.html#solders.keypair.Keypair.secret