cartesi_listBondEvents
Usage
import { } from "@cartesi/rpc";
const = ({ : "http://127.0.0.1:6751/rpc" });
const { , } = await .("cartesi_listBondEvents", {
: "0x0974CC873dF893B302f6be7ecf4F9D4b1A15C366",
: 50,
: 0,
});Events are ordered by block number and block-global log index; descending
reverses both.
Filters
The request can filter results by:
epoch_index: HexNumbertournament_address: Address
import { type } from "@cartesi/rpc"Return Type
The data is an array of BondEvent, discriminated on type: a
PARTIAL_BOND_REFUND carries refund, a BOND_RECOVERED carries recovery,
and neither carries both.
import {
type ,
type ,
} from "@cartesi/rpc";A failed partial refund records the value that was requested, not a payment —
read refund.success before treating refund.value as money that moved. A
failed terminal bond transfer emits no BOND_RECOVERED event at all; the bond
stays recoverable in the tournament snapshot.
For more information about pagination refer to the pagination section.