@ledgerhq/coin-canton
Version:
13 lines • 405 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.lastBlock = lastBlock;
const node_1 = require("../../network/node");
async function lastBlock() {
const result = await (0, node_1.getLastBlock)();
return {
height: result.blockHeight,
hash: result.blockHash,
time: new Date(result.timestamp),
};
}
//# sourceMappingURL=lastBlock.js.map