Skip to content
Logo

useMatchAdvances

Usage

import {  } from "@cartesi/wagmi";
 
function () {
  const { ,  } = ({
    : "0x...",
    : 50,
    : 0,
    // ...other filters
  });
  const { : ,  } =  || {};
  // render logic
}

Filters

The hook can filter results by:

  • application: Address | string
  • epochIndex?: bigint
  • tournamentAddress?: Address
import type {
  ,
} from "@cartesi/viem";
// {
//   application: Address | string;
//   epochIndex?: bigint;
//   tournamentAddress?: Address;
//   idHash: Hash;
//   limit?: number;
//   offset?: number;
//   descending?: boolean;
// }

Return Type

The data is an array of MatchAdvanced:

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