Skip to content

davloio/intuition-api-gateway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Intuition GraphQL API

Built with Rust Async-GraphQL Database: SQLx PostgreSQL
Tokio Warp Intuition Chain Serde

Overview

A high-performance GraphQL API for the Intuition blockchain explorer, providing real-time data access to blocks, transactions, and addresses.

Features

  • Real-time subscriptions for blocks, transactions, and stats
  • Paginated queries for efficient data retrieval
  • Detailed views for blocks, transactions, and addresses
  • WebSocket support for live updates

Quick Start

# Set environment variables
cp .env.example .env

# Run the server
cargo run --release

# GraphQL Playground available at
http://localhost:4000

API Endpoints

Basic Queries

  • stats - Network statistics
  • blocks - Paginated block list
  • transactions - Paginated transactions with filters
  • addresses - Paginated address list

Detail Queries

  • blockDetail - Full block information
  • transactionDetail - Complete transaction data
  • addressDetail - Address analytics and history

Subscriptions

  • blocks - Real-time block updates
  • transactions - Live transaction stream
  • stats - Network statistics updates

Environment Variables

DATABASE_URL=postgresql://user@localhost:5432/intuition_indexer
PORT=4000
HOST=0.0.0.0

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages