Skip to main content
Type: On-chain Indexer | Docs: envio.dev

Overview

Envio is a high-performance blockchain data indexer purpose-built for speed. It supports real-time event streaming and historical queries across Monad contracts. Rampart exposes Envio indexer status and query utilities.

Functions

getEnvioIndexerStatus()

Returns the current sync status of the Envio indexer on Monad.
import { Rampart } from 'rampart-monad'

const sdk = new Rampart()
const status = await sdk.getEnvioIndexerStatus()
// → { latestBlock: 8540000, syncedBlock: 8539998, lag: 2, healthy: true }

queryEnvio(query)

Executes a GraphQL query against the Envio Monad indexer endpoint.
ParameterTypeDescription
querystringGraphQL query string
const data = await sdk.queryEnvio(`
  query {
    Transfer(limit: 10, order_by: { block_number: desc }) {
      from
      to
      value
      block_number
    }
  }
`)