getCollateralInfo
Usage
example.ts
import { publicClient } from "./client";
const storageCollateral = await publicClient.getCollateralInfo();
Returns
Parameters
epochTag (optional)
- Type:
latest_state
|latest_confirmed
|latest_checkpoint
|earliest
- Defaut:
latest_state
const storageCollateral = await publicClient.getCollateralInfo({
epochTag: "latest_state",
});
epochNumber (optional)
- Type:
bigint
const storageCollateral = await publicClient.getCollateralInfo({
epochNumber: 1n,
});