@@ -144,6 +144,16 @@ options on the provider instance:
144
144
Retry Requests for HTTP Providers
145
145
`````````````````````````````````
146
146
147
+ ``HTTPProvider `` and ``AsyncHTTPProvider `` instances retry certain requests by default
148
+ on exceptions. This can be configured via the ``exception_retry_configuration ``
149
+ property on the provider instance, which takes a
150
+ :class: `~web3.providers.rpc.utils.ExceptionRetryConfiguration ` class as its value. The
151
+ retry mechanism employs an exponential backoff strategy, starting from the initial
152
+ value determined by the ``backoff_factor ``, and doubling the delay with each attempt,
153
+ up to the ``retries `` value. Below is an example showing the default options for the
154
+ retry configuration and how to override them.
155
+
156
+
147
157
.. py :class :: web3.providers.rpc.utils.ExceptionRetryConfiguration
148
158
149
159
.. py :attribute :: errors
@@ -166,14 +176,6 @@ Retry Requests for HTTP Providers
166
176
A list of retryable methods. The default is an in-house list of deemed-safe-to-
167
177
retry methods.
168
178
169
-
170
- ``HTTPProvider `` and ``AsyncHTTPProvider `` instances retry certain requests by default
171
- on exceptions. This can be configured via configuration options on the provider
172
- instance. The retry mechanism employs an exponential backoff strategy, starting from
173
- the initial value determined by the ``backoff_factor ``, and doubling the delay with
174
- each attempt, up to the ``retries `` value. Below is an example showing the default
175
- options for the retry configuration and how to override them.
176
-
177
179
.. code-block :: python
178
180
179
181
from web3 import Web3, HTTPProvider
0 commit comments