Skip to content

getAccumulateInterestRate

Get the accumulate interest rate at the given epoch.

Usage

example.ts
import { publicClient } from "./client";

const accumulateInterestRate = await publicClient.getAccumulateInterestRate({
  epochTag: "latest_state",
});

Returns

bigint

Parameters

epochTag (optional)

  • Type: latest_state| latest_confirmed| latest_checkpoint | earliest
  • Defaut: latest_state
const accumulateInterestRate = await publicClient.getAccumulateInterestRate({
  epochTag: "latest_state", 
});

epochNumber (optional)

  • Type: bigint
const accumulateInterestRate = await publicClient.getAccumulateInterestRate({
  epochNumber: 1n, 
});

JSON-RPC Method

cfx_getAccumulateInterestRate