Skip to main content
V2 gateway requests require an API key. Set SQD_API_KEY in .env before running gateway-based examples, or pass apiKey: process.env.SQD_API_KEY in GatewaySettings.
SQD Network has gateways for two networks that use Gear Protocol: Vara and Vara Testnet. Here are their endopint URLs:
Indexing Gear programs is supported with addGearMessageQueued() and addGearUserMessageSent() specialized data requests. These subscribe to the events Gear.MessageQueued and Gear.UserMessageSent emitted by a specified Gear program. The processor can also subscribe to any other event with addEvent() and filter by program ID in the batch handler, if so necessary. An example of a squid indexing a Gear program (an NFT contract) can be found here.