This will hide itself!
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, 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
Network Name
Prismochain Public Testnet
RPC URL
Chain ID
101001000
Currency Symbol
USDC
Block Explorer
Get testnet funds
Use the Glassnet faucet to receive test USDC.
Open Faucet
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.
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
Your frontend needs to handle three things:
Wallet connection
Network validation
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
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.
Contract deployed and verified
Wallet flows handled
Balance checks implemented
Transaction states handled
No secrets exposed
