Stellar Blockchain Information Nestjs Official documentation
$ npm install
config.ts example:
export const config = {
masterAccount: {
publicKey: '',
secretKey: ''
},
stellarServer: 'https://horizon-testnet.stellar.org',
mongoDb: {
host: '@ds1234.mlab.com:41530',
database: 'nestjs-stellar-restapi',
username: 'example_username',
password: 'password1234'
}
}
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
- /api/v1/stellar (POST) - to generate a new keypair
- /api/v1/stellar/{publicKey} (POST) - to create a new Stellar Blockchain account
Send POST request to http://localhost:3000/api/v1/stellar/