Skip to content
Last updated

Apollo Explorer is an online GraphQL playground you can use to run queries and subscribe to real-time updates from Kadindexer.

Access it here: Apollo Explorer Sandbox, and follow the steps below.

Step 1: Open the Settings Panel

Once the page loads, click the Settings button in the top-left corner.

Step 2: Set the API Endpoint

In the Connection Settings, choose the endpoint based on the network you want to query:

NetworkAPI Endpoint
Mainnethttps://api.mainnet.kadindexer.io/v1
Testnethttps://api.testnet.kadindexer.io/v1

Paste the selected URL into the Endpoint field:

Step 3: Add Your API Key

Authorize access to the API by adding your previously generated API key.
Set it as the x-api-key header, as shown below:

Step 4: Configure Subscriptions (Optional)

To enable real-time subscriptions, use the WebSocket endpoint for the network you’re connecting to:

NetworkWebSocket Endpoint
Mainnetwss://mainnet01.kadindexer.io/graphql
Testnetwss://testnet04.kadindexer.io/graphql

Paste the URL into the Subscriptions field:

Step 5: Run Your First Query

You’re now ready to execute queries in Apollo Explorer. Here’s a simple example to get the latest block height through all chains in kadena blockchain:

query {
  lastBlockHeight
}

Tip: Once everything is configured, you can use Apollo Explorer to explore the schema, test queries, and subscribe to real-time blockchain events effortlessly.