Skip to main content

B2 Testnet

Indexing B2 Testnet Data with Envio

FieldValue
B2 Testnet Chain ID1123
HyperSync URL Endpointhttps://b2-testnet.hypersync.xyz or https://1123.hypersync.xyz
HyperRPC URL Endpointhttps://b2-testnet.rpc.hypersync.xyz or https://1123.rpc.hypersync.xyz

Tier

undefined 🏗️

Overview

Envio is a modular hyper-performant data indexing solution for B2 Testnet, enabling applications and developers to efficiently index and aggregate real-time and historical blockchain data. Envio offers three primary solutions for indexing and accessing large amounts of data: HyperIndex (a customizable indexing framework), HyperSync (a real-time indexed data layer), and HyperRPC (extremely fast read-only RPC).

HyperSync accelerates the synchronization of historical data on B2 Testnet, enabling what usually takes hours to sync millions of events to be completed in under a minute—up to 1000x faster than traditional RPC methods.

Designed to optimize the user experience, Envio offers automatic code generation, flexible language support, multi-chain data aggregation, and a reliable, cost-effective hosted service.

To get started, see our documentation or follow our quickstart guide.


Defining Network Configurations

name: IndexerName # Specify indexer name
description: Indexer Description # Include indexer description
networks:
- id: 1123 # B2 Testnet
start_block: START_BLOCK_NUMBER # Specify the starting block
contracts:
- name: ContractName
address:
- "0xYourContractAddress1"
- "0xYourContractAddress2"
handler: ./src/EventHandlers.ts
events:
- event: Event # Specify event
- event: Event

With these steps completed, your application will be set to efficiently index B2 Testnet data using Envio’s blockchain indexer.

For more information on how to set up your config, define a schema, and write event handlers, refer to the guides section in our documentation.

Support

Can’t find what you’re looking for or need support? Reach out to us on Discord; we’re always happy to help!