I want to create a paper wallet for solana addresses. But how do I generate the address and private key for Solana using javascript? Is there a simple library I can use without all the extra bells and whistles? I just want to generate an address and private key that's it.


1 Answer 1


You can generate a keypair with the @solana/web3.js library. Per the Solana Cookbook:

import { Keypair } from "@solana/web3.js";

let keypair = Keypair.generate();

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.