Create Wallet | Introduction to JavaScript
Create Script
-
Create a new file named
create_wallet.js
in your project directory -
Paste the following code into
create_wallet.js
.This script creates a new XRP wallet and displays its address and private key (secret key).
Run Script
-
Run script by executing the following command on the command line.
If successful, you will see the following in the console.
XRPL can easily issue new addresses like this.
The address acts like a bank account number, and the private key is important for account management and signing.
-
If you want to continue to use the address you created here, please save the displayed address and secret key in a text file or in a note app, etc.
Notes
In the next section, we will show you how to get tokens for development use to your address for Testnet.