Smooth Scroll
This will hide itself!

PRISMO / A GETTING STARTED GUIDE

PRISMO / A GETTING STARTED GUIDE

Building dApps on Prismo

Building dApps on Prismo

Building dApps on Prismo

This guide walks you through everything you need to build and deploy a decentralized application on Prismo, from setting up your wallet to going live on the testnet.

This guide walks you through everything you need to build and deploy a decentralized application on Prismo, from setting up your wallet to going live on the testnet.

FOUNDATION

FOUNDATION

What You’re Building On

What You’re Building On

What You’re Building On

Prismo runs on Prismochain, an EVM-compatible Layer 2. Transactions are batched off-chain and secured on-chain with zero-knowledge validity proofs.

If you have built on Ethereum, Polygon, or another EVM chain, the experience will feel familiar.

USDC is the native gas token.

All transaction fees are paid in USDC, providing predictable and stable costs.

You will be building against Glassnet, Prismo’s public testnet.

BEFORE YOU START

BEFORE YOU START

Prerequisites

Prerequisites

Prerequisites

Before you start, ensure you have:

  • A Web3 wallet (MetaMask or equivalent)

  • Node.js (LTS)

  • Hardhat or Foundry

  • A code editor (VS Code recommended)

  • Basic Solidity and ethers.js or viem familiarity

PUBLIC TESTNET

PUBLIC TESTNET

Connect to Prismochain Glassnet.

Connect to Prismochain Glassnet.

Connect to Prismochain Glassnet.

Network Name

Prismochain Public Testnet

RPC URL

https://rpc.glassnet.prismo.network

https://rpc.glassnet.prismo.network

Chain ID

101001000

Currency Symbol

USDC

Get testnet funds

Use the Glassnet faucet to receive test USDC.

Open Faucet

LOCAL ENVIRONMENT

LOCAL ENVIRONMENT

Set Up Your Local Project

Set Up Your Local Project

Set Up Your Local Project

Create a fresh project and install Hardhat:

mkdir my-prismo-dapp && cd my-prismo-dapp

npm init -y

npm install --save-dev hardhat

npx hardhat init

Then point Hardhat at Glassnet in your hardhat.config.js:

module.exports = {

solidity: “0.8.24”,

networks: {

glassnet: {

url: “https://rpc.glassnet.prismo.network”,

chainId: 101001000,

accounts: [process.env.PRIVATE_KEY],

},

},

};

Never hardcode a private key.

Use .env and never commit secrets.

SMART CONTRACTS

SMART CONTRACTS

Write and Deploy a Smart Contract

Write and Deploy a Smart Contract

Write and Deploy a Smart Contract

Once your contract and deploy script are ready, deploy to Glassnet:

npx hardhat run scripts/deploy.js --network glassnet

  • Ensure your wallet has test USDC before deploying

  • Verify the deployment on the explorer

FRONTEND INTEGRATION

FRONTEND INTEGRATION

Connect Your Frontend

Connect Your Frontend

Connect Your Frontend

Your frontend needs to handle three things:

  1. Wallet connection

  2. Network validation

  3. Transaction state handling

import { ethers } from “ethers”;


const provider = new ethers.BrowserProvider(window.ethereum);

const signer = await provider.getSigner();


const network = await provider.getNetwork();


if (network.chainId !== 101001000n) {

// switch to Glassnet

}


const contract = new ethers.Contract(

contractAddress,

abi,

signer

);

Do

  • Handle disconnects

  • Block wrong network actions

  • Show transaction states

Don’t

  • Store private keys

  • Assume persistent connection

  • Ignore network changes

QUALITY ASSURANCE

QUALITY ASSURANCE

Testing Your dApp

Testing Your dApp

Testing Your dApp

  • Test on Glassnet

  • Simulate network latency

  • Test wallet disconnects

  • Test wrong network flows

  • Test insufficient USDC

  • Verify via explorer

Note: Testnet USDC has no real value.

LAUNCH READINESS

LAUNCH READINESS

Go-Live Checklist

Go-Live Checklist

Go-Live Checklist

Contract deployed and verified

Wallet flows handled

Balance checks implemented

Transaction states handled

No secrets exposed

KEEP BUILDING

KEEP BUILDING

Resources

Resources

Resources

Prismo Glassnet

Prismo Glassnet

Explore

Glassnet Faucet

Glassnet Faucet

Get tokens

Dev Documentation

Dev Documentation

Go back