Skip to content
Logo

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 | string
  • epochIndex?: bigint
  • inputIndex?: bigint
  • from?: bigint — inclusive lower bound on the report index
  • to?: 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.