UseWaitForCallsStatusParams

Defined in: account-kit/react/src/hooks/useWaitForCallsStatus.ts:14

Extends

  • Omit<WaitForCallsStatusParameters, "id">

Properties

PropertyTypeDescription

client

| undefined | AlchemySmartAccountClient<undefined | Chain, SupportedAccounts, | { } | LightAccountClientActions<AlchemySigner> | ExecutionActions<MultiOwnerModularAccount<AlchemySigner>, undefined, keyof EntryPointRegistryBase<unknown>> & ManagementActions<MultiOwnerModularAccount<AlchemySigner>, undefined, keyof EntryPointRegistryBase<unknown>> & ReadAndEncodeActions<MultiOwnerModularAccount<AlchemySigner>> & object & object & PluginManagerActions<MultiOwnerModularAccount<AlchemySigner>> & AccountLoupeActions<MultiOwnerModularAccount<AlchemySigner>> | MultiOwnerLightAccountClientActions<AlchemySigner>>

id

undefined | `0x${string}`

pollingInterval?

number

Polling frequency (in ms). Defaults to the client’s pollingInterval config.

Default

1client.pollingInterval

retryCount?

number

Number of times to retry if the call bundle failed.

Default

14 (exponential backoff)

retryDelay?

number | (config) => number

Time to wait (in ms) between retries.

Default

({ count }) => ~~(1 << count) * 200 (exponential backoff)

status?

(parameters) => boolean

The status range to wait for.

Default

1(status) => status >= 200

throwOnFailure?

boolean

Whether to throw an error if the call bundle fails.

Default

1false

timeout?

number

Optional timeout (in milliseconds) to wait before stopping polling.

Default

160_000