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: HexNumberinput_index: HexNumberoutput_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 andoutput_type: []does not compilevoucher_address: Addressfrom: HexNumber— inclusive lower bound on the output indexto: HexNumber— inclusive upper bound on the output indexexecuted: boolean—trueselects outputs with an execution transaction hash,falseselects 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.