o3-dapi-ont
Version:
Ontology Plugin for o3-dapi
14 lines (11 loc) • 298 B
text/typescript
import { sendMessage } from '../../messaging';
import { Command } from '../../constants';
interface GetBlockHeightArgs {
network: string;
}
export function getBlockHeight(data: GetBlockHeightArgs): Promise<number> {
return sendMessage({
command: Command.getBlockHeight,
data,
});
}