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 | stringepochIndex?: bigintinputIndex?: bigintoutputType?: OutputType | NonEmptyArray<OutputType>— an empty list is not a valid filter, and does not compilevoucherAddress?: Addressfrom?: bigint— inclusive lower bound on the output indexto?: bigint— inclusive upper bound on the output indexexecuted?: boolean—trueselects outputs already executed,falseselects 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.