1

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.

3

1 Answer 1

6

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(); 

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.