useReports
Usage
import { } from "@cartesi/react";
function () {
const { , } = ({
: "0x...",
: 50,
: 0,
// ...other filters
});
const { : , } = || {};
// render logic
}Filters
The hook can filter results by:
application: Address | stringepochIndex?: bigintinputIndex?: bigintfrom?: bigint— inclusive lower bound on the report indexto?: bigint— inclusive upper bound on the report index
import type {
,
} from "@cartesi/client";Return Type
The data is an array of Report:
import type {
,
,
,
} from "@cartesi/client";For more information about pagination refer to the pagination section.