Skip to main content
This guide walks you through building, deploying, and running NullGraph locally.

Installation

Build and Deploy

Run the Frontend

Configuration

Environment Variables

The frontend accepts optional environment variables. Create app/.env if you need custom configuration:

Update IDL After Program Changes

If you modify the Anchor program, rebuild and sync the IDL to the frontend:

Testing

Run Anchor Tests

Test the program using the Anchor test suite:
The test suite (tests/nullgraph.ts) covers:
  • Protocol initialization
  • NKA submission and counter increment
  • Bounty creation with BIO escrow
  • Bounty submissions and approvals
  • Fee calculation and distribution
  • Error cases (invalid status, duplicate init, etc.)

Architecture Overview

NullGraph runs entirely on Solana with no backend server:
Key Components:
  • Program ID: 2u3DXQq9A6UgMryeVSWCNdYLy3Fjh391R5hcfWYkCgZK
  • BIO Token Mint: GkjGV1ZF5BsMs6oAvk8jZiuXM8KwuygFCHLBpqR5Q14j
  • RPC Endpoint: https://api.devnet.solana.com
  • Network: Solana Devnet

Troubleshooting

Build Errors

Error: anchor: command not found Solution: Ensure Anchor CLI is installed and in your PATH:
Error: failed to get recent blockhash: FetchError Solution: Check your internet connection and verify Solana CLI config:

Deployment Errors

Error: Insufficient SOL balance Solution: Airdrop devnet SOL:
Error: Transaction simulation failed Solution: The program may already be deployed. Check the program account:

Frontend Errors

Error: Failed to connect to wallet Solution: Ensure Phantom is installed, unlocked, and set to Devnet. Error: Program account does not exist Solution: Deploy the program or use the existing devnet deployment.

Next Steps

Now that NullGraph is running, proceed to the Quickstart Guide to submit your first NKA and create a bounty.