useCallsStatus
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
Usage
Parameters
params
UseCallsStatusParams
- Parameters for the hook
params.client
GetSmartWalletClientResult<Address> | undefined
- Smart wallet client instance. The hook will not fetch until this is defined.
params.callId
Hex | undefined
- A call ID (hex string) returned from
sendPreparedCalls
. The hook will not fetch until this is defined.
Returns
UseCallsStatusResult
Query result