GraphQL can reduce the overhead needed for common queries. For example, instead of querying each receipt in a block, GraphQL can get the same result with a single query for the entire block.
The [Kaly GraphQL schema] describes the GraphQL implementation for Ethereum. Enable the GraphQL service using .
!!! note
GraphQL is not supported over WebSocket.
Access the GraphQL endpoint at http://<HOST>:<PORT>/graphql. Configure <HOST> and <PORT> using and . The default endpoint is http://127.0.0.1:8547/graphql.
GraphQL requests with cURL
with an equivalent query include a GraphQL request and result in the method example.
!!! example
The following [`syncing`](../../reference/api/index.md#eth_syncing) request returns data
about the synchronization status.
```bash
curl -X POST -H "Content-Type: application/json" --data '{ "query": "{syncing{startingBlock currentBlock highestBlock}}"}' http://localhost:8547/graphql
```
GraphQL requests with GraphiQL app
The third-party tool, , provides a tabbed interface for editing and testing GraphQL queries and mutations. GraphiQL also provides access to the [Kaly GraphQL schema] from within the app.
Pending
transactionCount and transactions supports the Pending query.
!!! important
Kaly does not execute pending transactions so results from `account`, `call`, and `estimateGas`
for Pending do not reflect pending transactions.