@ledgerhq/coin-tezos
Version:
16 lines • 533 B
JavaScript
;
// SPDX-FileCopyrightText: © 2026 LEDGER SAS
// SPDX-License-Identifier: Apache-2.0
Object.defineProperty(exports, "__esModule", { value: true });
exports.lastBlock = lastBlock;
const tzkt_1 = require("../network/tzkt");
async function lastBlock(context) {
const config = await context.config();
const result = await (0, tzkt_1.createTzktApi)(config).getLastBlock();
return {
height: result.level,
hash: result.hash,
time: result.date,
};
}
//# sourceMappingURL=lastBlock.js.map