Skip to content
Cive

getCollateralInfo

Usage

import {  } from "./client";
 
const  = await .();

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