/** * Original work Copyright (c) 2018 PoC-Consortium * Modified work Copyright (c) 2019 Burst Apps Team */ import {ChainService} from '../../../service/chainService'; import {BlockId} from '../../..'; /** * Use with [[ApiComposer]] and belongs to [[BlockApi]]. * * See details at [[BlockApi.getBlockId]] * @module core.api.factories */ export const getBlockId = (service: ChainService): (height: number) => Promise => (height: number): Promise => service.query('getBlockId', { height, });