## Parameters

| Parameter       | Description                                                                                                           | Required |
|------------------|-----------------------------------------------------------------------------------------------------------------------|----------|
| **baseApiUrl**   | Base api url for the relay api, defaults to [https://api.relay.link](https://api.relay.link/) but can also be configured to [https://api.testnets.relay.link](https://api.testnets.relay.link/) | ❌       |
| **options**      | Query parameters that map directly to the [execution status api](https://docs.relay.link/references/api/get-intents-status-v3) | ❌       |
| **queryOptions**  | Tanstack query options. Refer to the [Tanstack](https://tanstack.com/query/latest/docs/framework/react/guides/query-options) docs. | ❌       |

## Return Data

The hook returns an object with the base [Tanstack Query response](https://tanstack.com/query/v5/docs/framework/react/reference/useQuery). The data property maps to the object returned in the aforementioned [execution status api](https://docs.relay.link/references/api/get-intents-status-v3).

## Usage

```javascript
import { useExecutionStatus } from '@relayprotocol/relay-kit-hooks'

const { status,
        details,
        inTxHashes,
        txHashes,
        time,
        originChainId,
        destinationChainId
      } = useExecutionStatus('https://api.relay.link', {
        requestId: '0x6a6cab2695f2dc4a67539d971760764edac9e52b0a2219a5fbb3faf2f04ac7c2'
      })
```

## Query Function

```javascript
import { queryExecutionStatus } from '@relayprotocol/relay-kit-hooks'

queryExecutionStatus()
```
