Skip to content
Logo

cartesi_listOutputs

Usage

import {  } from "@cartesi/rpc";
 
const  = ({ : "http://127.0.0.1:6751/rpc" });
 
const { ,  } = await .("cartesi_listOutputs", {
    : "0x0974CC873dF893B302f6be7ecf4F9D4b1A15C366",
    : 50,
    : 0,
});

Filters

The request can filter results by:

  • epoch_index: HexNumber
  • input_index: HexNumber
  • output_type: Hex | NonEmptyArray<Hex> — one output type selector (the first 4 bytes of the raw data), or a list of selectors combined with OR semantics. The node rejects an empty list, so the type is a non-empty array and output_type: [] does not compile
  • voucher_address: Address
  • from: HexNumber — inclusive lower bound on the output index
  • to: HexNumber — inclusive upper bound on the output index
  • executed: booleantrue selects outputs with an execution transaction hash, false selects outputs without one
import {
    type ,
    type ,
    type ,
    type ,
} from "@cartesi/rpc"

Return Type

The data is an array of Output:

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

For more information about pagination refer to the pagination section.