getPoSBlock
Get the PoS block information by block number or block hash.
Usage
import { } from "./client";
const = await .();import { , } from "cive";
import { } from "cive/chains";
export const = ({
: ,
: (),
});Returns
Parameters
blockNumber (optional)
- Type:
bigint
const PoSBlock = await publicClient.getPoSBlock({
blockNumber: 1n,
});blockTag (optional)
- Type:
latest_committed|latest_voted - Defaut:
latest_voted
const PoSBlock = await publicClient.getPoSBlock({
blockTag: "latest_voted",
});blockHash (optional)
- Type:
Hash
const PoSBlock = await publicClient.getPoSBlock({
blockHash: "0x...",
});