Skip to main content

Usage

Parameters

  • burnTxHash (string | null | undefined): the source-chain burn to follow. The query is idle without one.
  • getBearerToken (() => Promise<string | null | undefined>): asked on every refetch.
  • pollIntervalMs (optional, default 15000): how often to ask while the deposit is PENDING. Polling stops once it is MINTED, FAILED or UNREGISTERED.
  • queryOptions (optional): extra TanStack Query options.

Return Value

A TanStack UseQueryResult<CctpDepositStatus>. data.status is PENDING while Circle attests and Chipi’s delivery runs, MINTED with data.mintTx (the Starknet receive_message transaction), FAILED (support can finish it; the burn is safe), or UNREGISTERED (call registerCctpDeposit).

Example Implementation