/api/graphql

post
GraphQL

https://www.tezoslive.io/api/graphql
In order to query the /api/graphql endpoint you need to provide X-TaaS-Key in the request. You also need to provide your GraphQL query in the request body.
Request
Response
Request
Headers
X-TaaS-Key
required
string
Your TaaS GraphQL API endpoint key
Body Parameters
required
object
GraphQL query object
Response
200: OK
GraphQL JSON response based on your query
{
"data": {
"block": {
"protocol": "PsCARTHAGazKbHtnKfLzQg3kms52kSRpgnDY982a9oYsSXRLQEb",
"chain_id": "NetXdQprcVkpaWU",
"hash": "BM7MCim4kxofsoP8Zaw7k8MRBqNWP9tAPnWQDLoz8i9mMjk7ssh",
"header": {
"level": 884753,
"timestamp": "2020-03-28T12:43:07Z"
}
}
}
}
401: Unauthorized
The API key provided in the X-TaaS-Key header is not valid, or the header is not provided.
Unauthorized
429: Too Many Requests
You are hitting rate limits on your TaaS GraphQL endpoint.
Status Code: 429
Retry-After: 58
Content: API calls quota exceeded! maximum admitted 10 per 1m.

Example of the GraphQL query object

{
block(block: 884753) {
protocol
chainId
hash
header {
level
timestamp
}
}
}

‚Äč