getBlockByHashWithPivotAssumption
Get the requested block if the provided pivot hash is correct, returns an error otherwise.
Usage
example.ts
import { publicClient } from "./client";
const block = await publicClient.getBlockByHashWithPivotAssumption({
blockHash: "0x...",
assumedPivotHash: "0x...",
epochNumber: 1n,
});
Returns
Block
Parameters
blockHash
- Type:
Hash
const block = await publicClient.getBlockByHashWithPivotAssumption({
blockHash: "0x...",
assumedPivotHash: "0x...",
epochNumber: 1n,
});
assumedPivotHash
- Type:
Hash
const block = await publicClient.getBlockByHashWithPivotAssumption({
blockHash: "0x...",
assumedPivotHash: "0x...",
epochNumber: 1n,
});
epochNumber
- Type:
bigint
const block = await publicClient.getBlockByHashWithPivotAssumption({
blockHash: "0x...",
assumedPivotHash: "0x...",
epochNumber: 1n,
});