Skip to content
Logo

cartesi_getEpochByVirtualIndex

Fetches a single epoch by its virtual index, which is the epoch's dense insertion rank — 0, 1, 2, … with no gaps by construction. Use it to walk the epochs of an application contiguously, where the epoch index itself can skip values.

Usage

import {  } from "@cartesi/rpc";
 
const  = ({ : "http://127.0.0.1:6751/rpc" });
 
const { :  } = await .("cartesi_getEpochByVirtualIndex", {
    : "0x0974CC873dF893B302f6be7ecf4F9D4b1A15C366",
    : "0x2A",
});

Return Type

import { type , type  } from "@cartesi/rpc";