'use strict';
const Chain = require('bcoin/lib/blockchain/chain');
const chain = new Chain({
network: 'main'
});
(async () => {
await chain.open();
console.log(chain.tip);
})();
The result is:
{ hash: '000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f',
version: '00000001',
prevBlock: '0000000000000000000000000000000000000000000000000000000000000000',
merkleRoot: '4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b',
time: 1231006505,
bits: 486604799,
nonce: 2083236893,
height: 0,
chainwork: '0000000000000000000000000000000000000000000000000000000100010001' }
Where is the database for this located?