listBondEvents
Usage
import { } from "viem";
import { } from "@cartesi/client";
const = ({
: ("http://127.0.0.1:6751/rpc"),
});
const { , } = await .({
: "0x...",
: 10,
: 0,
});Events are ordered by block number and block-global log index; descending
reverses both.
Parameters
import type { } from "@cartesi/client";
// {
// application: Address | string;
// epochIndex?: bigint;
// tournamentAddress?: Address;
// limit?: number;
// offset?: number;
// descending?: boolean;
// }Return Type
import type { , , } from "@cartesi/client";
// ListBondEventsReturnType = {
// data: BondEvent[];
// pagination: Pagination;
// }BondEvent is discriminated on type, so narrow before reading the payload:
declare const : ;
if (. === "PARTIAL_BOND_REFUND") {
// the value that was requested, paid only if `success`
..;
} else {
..;
}