Skip to content
Logo

getMatchAdvance

Usage

import {  } from "viem";
import {  } from "@cartesi/client";
 
const  = ({
  : ("http://127.0.0.1:6751/rpc"),
});
 
const  = await .({
  : "0x...",
  : 1n,
  : "0x...",
  : "0x...",
  : "0x...",
  : 0n,
});

An advance is keyed by the transaction hash and block-global log index of its event, both of which listMatchAdvances returns: repeated other-parent hashes stay distinct events, so the parent hash alone does not identify one. A log index of zero is valid.

Parameters

import type {  } from "@cartesi/client";
// {
//   application: Address | string;
//   epochIndex: bigint;
//   tournamentAddress: Address;
//   idHash: Hash;
//   txHash: Hash;
//   logIndex: bigint;
// }

Return Type

import type { ,  } from "@cartesi/client";
// GetMatchAdvanceReturnType = MatchAdvanced;