Documentation Index
Fetch the complete documentation index at: https://docs.chipipay.com/llms.txt
Use this file to discover all available pages before exploring further.
Usage
Input Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
hash | string | Yes | Transaction hash (0x...) |
getBearerToken | () => Promise<string> | Yes | Function returning the auth token |
refetchInterval | number | false | No | Polling interval in ms (default: 3000). false to disable. |
queryOptions | UseQueryOptions | No | React Query options |
Return Value
| Property | Type | Description |
|---|---|---|
data | TransactionStatusResponse | undefined | Transaction status data |
isLoading | boolean | True while fetching |
isError | boolean | True if an error occurred |
isSuccess | boolean | True if the query succeeded |
error | Error | null | Error when isError is true |
refetch | () => Promise<QueryObserverResult> | Re-run the query |
fetchTransactionStatus | (input) => Promise<TransactionStatusResponse> | Imperatively fetch |
Polling automatically stops when the status reaches a terminal state:
ACCEPTED_ON_L1, REJECTED, or REVERTED.