Docs
Search⌘ K
  • Home
  • About The Graph
  • Supported Networks
  • Protocol Contracts
  • AI Tooling
  • Subgraphs
    • Substreams
      • Indexer Software
        • Gateway Software
          • Data Services
            • Resources

              Anubis Mainnet

              Subgraphs
              Subgraph Studio (API Keys)⁠ • Community Indexing
              Type
              mainnet
              Protocol
              ethereum
              Identifier
              anubis
              Chain ID
              eip155:6714
              Native Currency
              gasDAI
              Chain Docs
              https://anubis-network.gitbook.io/anubis-network⁠

              Getting Started on Anubis

              Anubis Chain is a privacy-focused, EVM-compatible Layer 1 that pairs base-layer privacy (PLONK ZK proofs and selective disclosure) with publicly verifiable onchain data, live on mainnet since April 2026 and already running 1M+ transactions a day across a growing DeFi ecosystem (RocketSwap, AWAKE). A subgraph could index that onchain activity — DEX swaps, pools, and liquidity; lending and RWA positions; token transfers and holder balances; and contract events — and serve it via GraphQL. That powers DeFi frontends, analytics dashboards, block explorers, portfolio trackers, and onchain agents without teams having to run their own indexing infrastructure.

              Importantly, Anubis is a selective-privacy chain. A Subgraph can only index data that is public on-chain. Transparent transactions, and the events they emit, are fully indexable. Data inside shielded (PLONK ZK) transactions is not visible on-chain, so it cannot be indexed. Design your contract’s public events with this in mind if you want that data to be queryable.

              Indexing Anubis with Subgraphs

              Getting smart contract data is hard. You write your own indexer, run your own database, and handle chain reorganizations yourself. The Graph removes that work, giving you an open API, called a Subgraph, that you query with GraphQL.

              Anubis is EVM-compatible, so the Subgraph workflow is the same as on most EVM chains. You point a Subgraph at your Anubis contract, define the entities you want, and Indexers on The Graph Network keep those entities current and queryable.

              Quick Start: Build Your Own Subgraph

              Building a Subgraph for Anubis takes three steps:

              1. Initialize a Subgraph project from your Anubis contract.
              2. Publish it to The Graph Network for decentralized indexing.
              3. Query it over GraphQL with an API key.

              See the Subgraph pricing page for current query rates and free-tier limits.

              Anubis is supported on The Graph Network, but does not currently have Subgraph Studio testing/staging support. Skip the standard graph deploy and Studio playground path. Instead, you can validate your Subgraph locally (see below) or publish directly to The Graph Network, where a decentralized Indexer that supports Anubis indexes it.
              Step 1: Initialize your Subgraph project

              Install the Graph CLI with the package manager you prefer:

              1# npm2npm install -g @graphprotocol/graph-cli@latest34# or yarn5yarn global add @graphprotocol/graph-cli

              Verify the install:

              1graph --version

              Initialize from your Anubis contract:

              1graph init

              The CLI walks you through a set of prompts. Anubis is a custom EVM network, so provide the network details manually when asked:

              • Protocol: choose ethereum. Anubis is EVM-compatible.
              • Subgraph slug: an identifier for your Subgraph, for example my-anubis-subgraph.
              • Directory: where the project is scaffolded.
              • Ethereum network: enter anubis as the network identifier.
              • Contract address: the address of the contract you want to index. Find it on browser.anubispace.org.
              • ABI: if the CLI cannot fetch the ABI, export it from your build artifacts or the Blockscout contract page. Supply it as a JSON file.
              • Start block: the block your contract was deployed at. Set this so indexing does not scan from genesis. The explorer shows the deployment block.
              • Contract name: the name of your contract.
              • Index contract events as entities: set this to true. The CLI then scaffolds entities and mappings for every emitted event.
              The network value you enter (anubis) must match the network identifier that The Graph has registered for Anubis. If graph init does not recognize the network, scaffold with any EVM network and set the network field manually in subgraph.yaml (next step).
              Step 2: Write and build your Subgraph

              You work with three files:

              • Manifest: subgraph.yaml defines which data sources your Subgraph indexes.
              • Schema: schema.graphql defines the entities you want to query.
              • Mappings: src/mapping.ts uses AssemblyScript that translates on-chain events into your entities.

              Point the manifest at Anubis:

              1dataSources:2- kind: ethereum3  name: MyContract4  network: anubis5  source:6    address: '0xYourAnubisContractAddress'7    abi: MyContract8    startBlock: 123456 # your contract's deployment block

              For a full walkthrough of schema and mapping authoring, see Creating a Subgraph.

              Generate types and build:

              1graph codegen && graph build

              Optional: verify locally before publishing. The Studio playground cannot index Anubis, so test indexing with a local Graph Node⁠ pointed at an RPC endpoint for Anubis. In your docker-compose.yml, set the Ethereum environment to your Anubis network:

              1environment:2ethereum: 'anubis:https://rpc.anubispace.org'

              Create and deploy to your local node:

              1graph create --node http://localhost:8020/ my-anubis-subgraph2graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 my-anubis-subgraph

              Query the local endpoint until your entities look right, then publish.

              Step 3: Publish & Curate on The Graph Network
              This is the recommended path for Anubis.

              Publishing is an on-chain action that:

              • makes your Subgraph available for decentralized Indexers that support Anubis to index,
              • makes it publicly searchable and queryable in Graph Explorer,
              • and makes it available for Curators to add signal.

              Build, then publish from the Graph CLI:

              1graph codegen && graph build2graph publish

              A browser window opens. Connect your wallet, add metadata (name, description, image), and publish your Subgraph. The --protocol-network flag refers to where The Graph’s protocol contracts live (Arbitrum One), not to Anubis.

              During the publish transaction, you can add 500 GRT in curation signal to save on gas fees. Signal tells Indexers that your Subgraph is worth indexing. Any Subgraph with 500 GRT or more signal will automatically be indexed; without signal, no Indexer is incentivized to pick up your Subgraph.

              Step 4: Query your Subgraph

              After you publish, open your Subgraph in Graph Explorer and copy its query URL from the Query button.

              1. Create an API key from the API Keys dashboard at thegraph.com/studio. This dashboard handles keys and billing for The Graph Network on Arbitrum, independent of which chains Studio can index.
              2. Send GraphQL queries to the query URL with your API key.

              See the Subgraph pricing page for query rates, and Querying The Graph for the full query API.

              Guides

              10 min

              Subgraph quick start

              Kickstart your journey into subgraph development.

              12 min

              Graph Explorer

              Find and query existing blockchain data.

              5 min

              Billing

              Optimize costs and manage billing efficiently.

              5 min

              Timeseries & Aggregations

              Learn to track metrics like daily volumes or user growth.

              7 min

              Advanced subgraph features

              Leverage features like custom data sources, event handlers, and topic filters.

              The GraphStatusTestnetBrand AssetsForumSecurityPrivacy PolicyTerms of Service