A high-performance blockchain indexer for the Blocksquare ecosystem, built with Envio. Tracks and aggregates real-time on-chain data for property tokenization, DeFi operations, and marketplace activities on Ethereum and Sepolia networks.
- Real Estate Tokenization: Indexes tokenized properties with valuations, ownership, and revenue distribution
- DeFi Tracking: Monitors BST staking, liquidity pools, and governance participation
- Marketplace Analytics: Tracks property offerings, certified partners, and secondary market trades
- Price Aggregation: Real-time BST and asset price feeds from Chainlink and Uniswap
- Clone the repository:
git clone https://github.com/blocksquare/blocksquare-indexer.git
cd blocksquare-indexer- Install dependencies:
pnpm install- Configure environment:
cp .env.example .env
# Defaults to mainnet, change to testnet if needed- Generate configuration:
pnpm run config- Generate types and start indexing:
pnpm run codegen
pnpm run devRun the indexer in development mode with hot reload:
pnpm run devBuild and start the indexer:
pnpm run build
pnpm run startRun the test suite:
pnpm run testQuery indexed data through the GraphQL endpoint:
- PropertyToken: Token details, valuations, holders, trades
- PropertyTokenOffering: Investment rounds and claims
- AssetPair: Real-time BST and asset prices
- Staking & Revenue: Pool activities, rewards, and distributions
- CertifiedPartner: Marketplace operators and properties
- Mainnet: Full ecosystem with price feeds
- Sepolia Testnet: Development and testing
See .env.example for all configuration options including custom RPC endpoints and API keys.
Contributions are welcome! Please:
- Fork the repository
- Create a feature branch
- Make your changes with tests
- Submit a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.