createBlockFilter
Creates a Filter to listen for new block hashes that can be used with getFilterChanges
.
Usage
example.ts
import { publicClient } from "./client";
const filter = await publicClient.createBlockFilter();
{ id: "0x...", type: 'block' }