Functions
getTimeoutPromise
getTimeoutPromise(
config
):Promise
<unknown
>
When no other heuristic exists to infer that a transaction has expired, you can use this promise
factory with a commitment level. It throws after 30 seconds when the commitment is processed
,
and 60 seconds otherwise. You would typically race this with another confirmation strategy.
Parameters
Parameter | Type | Description |
---|---|---|
config | Config |
Returns
Promise
<unknown
>