Skip to content
Logo

useOutputs

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
  • outputType?: OutputType | NonEmptyArray<OutputType> — an empty list is not a valid filter, and does not compile
  • voucherAddress?: Address
  • from?: bigint — inclusive lower bound on the output index
  • to?: bigint — inclusive upper bound on the output index
  • executed?: booleantrue selects outputs already executed, false selects the ones that are not
import { type  } from "@cartesi/client"

Return Type

The data is an array of Output:

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

For more information about pagination refer to the pagination section.