torii

Index and query on-chain data for Dojo games on Starknet.

10|10|Updated Apr 16, 2025
One-click install
npx skills add https://github.com/dojoengine/torii --skill torii
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: torii
Source: https://github.com/dojoengine/torii/tree/main/.agents/skills/torii
Command: npx skills add https://github.com/dojoengine/torii --skill torii

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a robust solution for indexing and querying on-chain data from Dojo games running on Starknet, offering a comprehensive view of game state and history.

Core Features & Use Cases

  • On-chain Data Indexing: Automatically indexes and tracks changes in on-chain data.
  • Multiple Query Interfaces: Supports querying indexed data via SQL, gRPC, GraphQL, MCP, static routes, and Prometheus metrics.
  • Use Case: Developers can use Torii to monitor player actions, track in-game asset changes, and debug game state issues by querying the indexed data through their preferred interface.

Quick Start

Use the torii skill to start Torii with the world address 0x123 and RPC endpoint http://localhost:5050.

Frequently Asked Questions about torii

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I index and query on-chain game data for Dojo games on Starknet?

You can query indexed Starknet game data through Torii using multiple interfaces including SQL, gRPC, GraphQL, MCP, static routes, and Prometheus metrics. This allows you to monitor player actions, track in-game asset changes, and debug game state issues.

What is the best way to debug game state issues for Starknet games?

The best way to debug game state issues for Starknet games is to query indexed on-chain data using Torii. It facilitates debugging and state analysis by providing a comprehensive view of game history and state changes through your preferred query interface.

Can I use GraphQL and SQL to query Starknet game state?

Yes, you can use both GraphQL and SQL to query Starknet game state. Torii supports multiple query interfaces including GraphQL, SQL, gRPC, MCP, and static routes, allowing developers to access indexed on-chain data through their preferred method.

How do I start indexing on-chain data with a specific world address and RPC endpoint?

To start indexing on-chain data, use the Torii skill with your specific world address and RPC endpoint. For example, you can start Torii with the world address 0x123 and RPC endpoint http://localhost:5050 to begin tracking game state changes.

Does Torii support Prometheus metrics for monitoring Starknet game data?

Yes, Torii supports Prometheus metrics for monitoring Starknet game data. Along with SQL, gRPC, GraphQL, MCP, and static routes, it provides Prometheus metrics for data access and monitoring, allowing developers to track player actions and in-game asset changes.

Why do I need an indexer for my Dojo game on Starknet?

You need an indexer for your Dojo game on Starknet to automatically track and query on-chain data, providing a comprehensive view of game state and history. Torii solves this by indexing data and offering multiple query interfaces for monitoring and debugging.