Skip to content

getCollateralInfo

Usage

example.ts
import { publicClient } from "./client";
 
const storageCollateral = await publicClient.getCollateralInfo();

Returns

storage collateral

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, 
});

JSON-RPC Method

cfx_getCollateralInfo