Pi Squared
HomeAbout UsCareersDeveloperResourcesBlog
  • Pi Squared
  • VSL Devnet
  • Overview
  • FAQ
  • Getting Started
    • Run a Local Devnet
    • Core Concepts
      • The Devnet Architecture
      • The Account Model
      • Transactions and Claims
  • Interact with the Devnet
    • Send Raw Curl Requests
    • Run Commands with the CLI
    • Use MetaMask Integration
    • Browse Claims with the Explorer
  • 1+3 Architecture
    • Multichain Interoperability
    • Blockchain Mirroring
      • Block Header Settlement
    • AI + Trusted Execution Environment
  • Metamask Integration
    • Run the MetaMask Snap
    • Sample dApp using MetaMask
  • Tutorials
    • Creating Accounts
Powered by GitBook
On this page
  • Overview
  • Remote Deployment URLs
  • Quick Start via Docker
  • Rust SDK Setup
  • Use the CLI

Was this helpful?

  1. Getting Started

Run a Local Devnet

This guide helps you understand how to set up a local instance of the VSL protocol for development and testing. It provides a high-level overview of how the setup works and points you to the appropriate resources for installation and usage instructions.

We strongly recommend following the setup steps in the VSL-SDK repository to ensure you have the most up-to-date configuration.

Overview

The local devnet setup uses Docker Compose to spin up multiple services:

Service

Description

vsl-core

The main VSL node exposing a JSON-RPC interface on port 44444.

explorer-backend

Backend API used by the Explorer frontend to query blockchain data.

explorer-frontend

A web-based Explorer interface to visualize VSL activity.

These services run together using pre-built images hosted on GitHub Container Registry. When deployed locally, they are accessible on:

  • RPC server: http://localhost:44444

  • Explorer: http://localhost:4000.

You can test your local RPC service with:

curl -X POST http://localhost:44444 \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "vsl_getHealth",
    "params": {}
  }'

Remote Deployment URLs

In addition to running locally, you can also interact with our public deployment:

  • RPC server: https://rpc.vsl.pi2.network

  • Explorer: https://explorer.vsl.pi2.network

Quick Start via Docker

To get started quickly using Docker, check out the Quick Start section of the VSL-SDK repository. It provides step-by-step instructions to:

  • Configure environment variables

  • Start the services

  • Choose between persistent or fresh data volumes

The Docker Compose file includes health checks and exposes necessary ports so you can access services as soon as they’re ready.

Rust SDK Setup

The repository also provides tools and helpers written in Rust. If you want to explore the SDK:

  • Visit the vsl-sdk directory.

  • Follow the setup instructions in the README to install dependencies and build the SDK.

  • You’ll find additional examples and workflows, such as the faucet example, in that folder.

Use the CLI

For a CLI-based approach to interacting with the VSL node (e.g., sending transactions, querying data), refer to our Run Commands with CLI guide in the docs.

You can also check out the VSL-CLI repository for up-to-date setup and usage instructions.

If you run into issues, feel free to reach out in our Discord channel and we’ll be glad to help.

PreviousFAQNextCore Concepts

Last updated 15 hours ago

Was this helpful?