opstack-kit-chains
Version:
Support your OP-Stack network with 'opstack-kit'
13 lines • 589 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.getL1BatchBlockRange = void 0;
const fromHex_js_1 = require("../../utils/encoding/fromHex.js");
async function getL1BatchBlockRange(client, parameters) {
const [number_1, number_2] = await client.request({
method: 'zks_getL1BatchBlockRange',
params: [parameters.l1BatchNumber],
});
return [(0, fromHex_js_1.hexToNumber)(number_1), (0, fromHex_js_1.hexToNumber)(number_2)];
}
exports.getL1BatchBlockRange = getL1BatchBlockRange;
//# sourceMappingURL=getL1BatchBlockRange.js.map
;