• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Mintbase / mintbase-js / 5268867622

pending completion
5268867622

push

github

sainthiago
:alien: update token attributes props

605 of 821 branches covered (73.69%)

Branch coverage included in aggregate %.

905 of 976 relevant lines covered (92.73%)

4.82 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

75.0
/packages/rpc/src/methods/blockheight.ts
1
import { requestFromNearRpc } from '../util';
1✔
2

3
export const getBlockHeight = async (): Promise<number> => {
1✔
4
  const res = await requestFromNearRpc({
1✔
5
    jsonrpc: '2.0',
6
    id: 'dontcare',
7
    method: 'status',
8
    params: [],
9
  });
10
  const blockHeight = res?.result?.sync_info?.latest_block_height;
1!
11
  if (!blockHeight) {
1!
12
    throw new Error(`Malformed response: ${JSON.stringify(res)}`);
×
13
  }
14
  return blockHeight;
1✔
15
};
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc