function useCallsStatus(params): UseCallsStatusResult;Defined in: account-kit/react/src/hooks/useCallsStatus.ts:55
Hook to retrieve the status of prepared calls from the Wallet API.
This hook queries the status of a specific call ID that was returned from wallet_sendPreparedCalls.
The status indicates whether the batch of calls has been processed, confirmed, or failed on-chain.
import { useCallsStatus } from "@account-kit/react";
function MyComponent() {
const {
data: callsStatus,
isLoading,
error,
} = useCallsStatus({
client: smartWalletClient,
callId: "0x1234...", // The call ID from sendPreparedCalls
queryOptions: {
// Refetch every 2 sec while pending.
refetchInterval: (q) => (q.state.data?.status === 100 ? 2000 : false),
},
});
}| Parameter | Type | Description |
|---|---|---|
| Parameters for the hook |
Query result