getBlock
Get a block by hash or height
import { createKontorIndexerClient, http, signet } from '@kontor/kontor-sdk'
export const indexerClient = createKontorIndexerClient({
chain: signet,
transport: http()
})
const block1 = await indexerClient.getBlock({
hash: "0000000"
})
// OR
const block2 = await indexerClient.getBlock({
height: 1_000_000
})