Hooks
useExecutionStatus
Fetch the execution status of a quote
Was this page helpful?
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Fetch the execution status of a quote
| Parameter | Description | Required |
|---|---|---|
| baseApiUrl | Base api url for the relay api, defaults to https://api.relay.link but can also be configured to https://api.testnets.relay.link | ❌ |
| options | Query parameters that map directly to the execution status api | ❌ |
| queryOptions | Tanstack query options. Refer to the Tanstack docs. | ❌ |
import { useExecutionStatus } from '@relayprotocol/relay-kit-hooks'
const { data, isLoading, error } = useExecutionStatus(
'https://api.relay.link',
{ requestId: '0x6a6cab2695f2dc4a67539d971760764edac9e52b0a2219a5fbb3faf2f04ac7c2' }
)
const { status, details, inTxHashes, txHashes, time, originChainId, destinationChainId } = data ?? {}
import { queryExecutionStatus } from '@relayprotocol/relay-kit-hooks'
queryExecutionStatus()
Was this page helpful?