UNPKG

@dashevo/wallet-lib

Version:
9 lines (6 loc) 289 B
const { Block } = require('@dashevo/dashcore-lib'); const logger = require('../../../logger'); module.exports = async function getBlockByHash(blockHash) { logger.silly(`DAPIClient.getBlockByHash[${blockHash}]`); return new Block(await this.client.core.getBlockByHash(blockHash)); };