UNPKG

@ledgerhq/coin-canton

Version:
16 lines 528 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.lastBlock = lastBlock; const gateway_1 = require("../../network/gateway"); const gateway_2 = require("../../network/gateway"); async function lastBlock(currency) { if (!(0, gateway_1.isGatewayEnabled)(currency)) throw new Error("Not implemented"); const height = await (0, gateway_2.getLedgerEnd)(currency); return { height, hash: "", time: new Date(), }; } //# sourceMappingURL=lastBlock.js.map