useEpochs
Usage
import { } from "@cartesi/react";
function () {
const { , } = ({
: "0x...",
: 50,
: 0,
// ...other filters
});
const { : , } = || {};
// render logic
}Filters
The hook can filter results by:
application: Address | stringstatus?: EpochStatus | NonEmptyArray<EpochStatus>— an empty list is not a valid filter, and does not compilefrom?: bigint— inclusive lower bound on the epoch indexto?: bigint— inclusive upper bound on the epoch index
import type {
,
,
} from "@cartesi/client";Return Type
The data is an array of Epoch:
import type {
,
,
,
} from "@cartesi/client";For more information about pagination refer to the pagination section.