Skip to content
Logo

listOutputs

Usage

import {  } from "viem";
import {  } from "@cartesi/viem";
 
const  = ({
  : ("http://127.0.0.1:6751/rpc"),
});
 
const { ,  } = await .({
  : "0x...",
  : 10,
  : 0,
  // epochIndex, inputIndex, outputType, voucherAddress (optional)
});

Parameters

import type {  } from "@cartesi/viem";
// {
//   application: Address | string;
//   epochIndex?: bigint;
//   inputIndex?: bigint;
//   outputType?: OutputType;
//   voucherAddress?: Address;
//   limit?: number;
//   offset?: number;
//   descending?: boolean;
// }

Return Type

import type { , ,  } from "@cartesi/viem";
// ListOutputsReturnType = {
//   data: Output[];
//   pagination: Pagination;
// }