Skip to main content

Documentation Index

Fetch the complete documentation index at: https://beta.docs.sqd.dev/llms.txt

Use this file to discover all available pages before exploring further.

← Back to Portal Setup

Return to the Portal setup overview to explore other deployment options.
This guide walks you through migrating SDK-based squids from gateways of the open private version of SQD Network to portals of the permissionless SQD Networkas your primary data source.

Prerequisites

  • An existing Squid SDK-based squid using @subsquid/evm-processor with .setGateway()
  • Access to an SQD portal URL (see Step 2 for options)

Migration steps

1

Install portal-api version

Navigate to your squid’s folder and install the portal-api version of @subsquid/evm-processor:
npm i @subsquid/evm-processor@portal-api
2

Obtain a portal URL

Obtain a portal URL for your dataset. Choose the option that matches your setup:
If you’re an existing user of the SQD Cloud:
  1. Enable the preview mode
  2. Navigate to the portals page
  3. Click on the tile of your network and follow the instructions
Once configured, you can run your portal-powered squid both locally and in the Cloud. You can skip Step 3, it’s already configured automatically.
3

Update processor configuration

Configure your squid to ingest data from the portal by replacing the .setGateway() call in your processor configuration (typically in src/processor.ts) with .setPortal().
Replace .setGateway() with .setPortal() using your portal URL directly:
src/processor.ts
export const processor = new EvmBatchProcessor()
  .setPortal('<portal URL for your dataset>')
If your squid uses an RPC endpoint, keep that configuration for now. Portals do not currently support real-time data ingestion, but this capability is coming soon.
Your squid is now configured to source data from Portal. Test it locally to verify everything works correctly.