coindb (under development)
A simple crypto-coin data storage.
It only stores addresses and transactions.
Requirement
- Nodejs v8+
- MongoDb 3.x listening on localhost:27017
Install
npm install coindb --save
Usage
All Api endpoints returns a Promise
const CoinDb = ; async { const coindb = await ; const getwallet = await coindb; console; //prints { id: 'bitcoin', name: 'btc', bip44: 1 } await coindb; const address = await coindb; consle //prints { walletId: 'bitcoinner', address: '1UniBRgb1QYyvMmm6VMFyutZfPoZgPUXL', accountId: 1, index: 4 }}
Test
npm test
Debug
By default, Coindb stores current process log at process.env.HOME + '/.coindb'
. Log files gets overwritten every start instance.
To output logs on your console, initiate the CoinDb with a additional true
flag.
const coindb = await ;
Api
TODO: Add more description for each endpoint