Root endpoint has no other function than to point end users to documentation. https://docs.blockfrost.io/#tag/health/GET/ :param return_type: Optional. "object", "json" or "pandas". Default: "object". :type return_type: str :returns RootResponse object.
(self, **kwargs)
| 20 | |
| 21 | @request_wrapper |
| 22 | def root(self, **kwargs): |
| 23 | """ |
| 24 | Root endpoint has no other function than to point end users to documentation. |
| 25 | |
| 26 | https://docs.blockfrost.io/#tag/health/GET/ |
| 27 | :param return_type: Optional. "object", "json" or "pandas". Default: "object". |
| 28 | :type return_type: str |
| 29 | :returns RootResponse object. |
| 30 | :rtype RootResponse |
| 31 | :raises ApiError: If API fails |
| 32 | :raises Exception: If the API response is somehow malformed. |
| 33 | """ |
| 34 | return requests.get( |
| 35 | url=f"{self.url}/", |
| 36 | headers=self.authentication_header |
| 37 | ) |
| 38 | |
| 39 | from .health import \ |
| 40 | health, \ |
no outgoing calls