import { sendMessage } from '../../messaging'; import { Command } from '../../constants'; interface GetBlockHeightByTxHashInput { hash: string; network: string; } export function getBlockHeightByTxHash(data: GetBlockHeightByTxHashInput): Promise { return sendMessage({ command: Command.getBlockHeightByTxHash, data, }); }