waitForUserOperationReceipt
Waits for the User Operation to be included on a Block (one confirmation), and then returns the User Operation receipt.
Usage
example.ts
import { nexusClient } from "./nexusClient"
const receipt = await nexusClient.waitForUserOperationReceipt({
hash: '0x315a882b82eb33250b919da6ebb2dd890df39ca0840e4026cbbad595b9a07e86'
})
Parameters
- hash
'0x${string}'
: A Transaction hash. - pollingInterval (optional)
number
: Polling frequency (in ms) - retryCount (optional)
number
: The number of times to retry. Default value is 6. - timeout (optional)
number
: Optional timeout (in ms) to wait before stopping polling. Default value is 5000.
Response
- receipt
Promise<UserOperationReceipt>
: The User Operation receipt.