useCommitments
Usage
import { } from "@cartesi/wagmi";
function () {
const { , } = ({
: "0x...",
: 50,
: 0,
// ...other filters
});
const { : , } = || {};
// render logic
}Filters
The hook can filter results by:
application: Address | stringepochIndex?: biginttournamentAddress?: Address
import type {
,
} from "@cartesi/viem";
// {
// application: Address | string;
// epochIndex?: bigint;
// tournamentAddress?: Address;
// limit?: number;
// offset?: number;
// descending?: boolean;
// }Return Type
The data is an array of Commitment:
import type {
,
,
,
} from "@cartesi/viem";