Skip to content

getLatestBlock

getLatestBlock retrieves information about the most recent block in the blockchain.

Usage

import { createKontorIndexerClient, http, signet } from '@kontor/kontor-sdk'
 
export const indexerClient = createKontorIndexerClient({
  chain: signet,
  transport: http()
})
 
const latestBlock = await indexerClient.getLatestBlock()