Let's start writing our Node.js create account utility, as follows:
- Create a new nodejs project directory. Install the stellar-sdk JavaScript module by executing the following command in the directory:
npm install --save stellar-sdk
- Create a new project file called CreateAccount.js.
- Start by importing the stellar-sdk, as follows:
const StellarSdk = require('stellar-sdk');
- Next, we'll define a new instance of the stellar-sdk, pointed to our local Horizon instance:
const server = new StellarSdk.Server('http://127.0.0.1:8000', {allowHttp: true});const passphrase = 'Standalone Network ; February 2017'
- The passphrase allows only selected users to connect to our network. You can find the network passphrase ...