Configuration for the hypersync client.
| 723 | |
| 724 | @dataclass |
| 725 | class ClientConfig: |
| 726 | """Configuration for the hypersync client.""" |
| 727 | |
| 728 | # HyperSync server URL. |
| 729 | url: Optional[str] = None |
| 730 | # HyperSync server API token. |
| 731 | api_token: Optional[str] = None |
| 732 | # Milliseconds to wait for a response before timing out. |
| 733 | http_req_timeout_millis: Optional[int] = None |
| 734 | # Number of retries to attempt before returning error. |
| 735 | max_num_retries: Optional[int] = None |
| 736 | # Milliseconds that would be used for retry backoff increasing. |
| 737 | retry_backoff_ms: Optional[int] = None |
| 738 | # Initial wait time for request backoff. |
| 739 | retry_base_ms: Optional[int] = None |
| 740 | # Ceiling time for request backoff. |
| 741 | retry_ceiling_ms: Optional[int] = None |
| 742 | # Deprecated: use api_token instead. Will be removed in a future release. |
| 743 | bearer_token: Optional[str] = None |
| 744 | # Whether to proactively sleep when the rate limit is exhausted instead of |
| 745 | # sending requests that will be rejected with 429. Default: True. |
| 746 | proactive_rate_limit_sleep: Optional[bool] = None |
| 747 | |
| 748 | |
| 749 | class QueryResponseData(object): |