Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 1.16 KB

HeadApi.md

File metadata and controls

52 lines (35 loc) · 1.16 KB

swagger_client.HeadApi

All URIs are relative to https://api.tzkt.io

Method HTTP request Description
head_get GET /v1/head Get indexer head

head_get

State head_get()

Get indexer head

Returns indexer head and synchronization status.

Example

from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.HeadApi()

try:
    # Get indexer head
    api_response = api_instance.head_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling HeadApi->head_get: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

State

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]