Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Ge0frey/nullgraph/llms.txt
Use this file to discover all available pages before exploring further.
BIO Protocol Integration
NullGraph is natively built for Bio Protocol, aligning with its mission to create decentralized infrastructure for scientific research and data.All NullGraph bounties are denominated in BIO tokens, directly integrating with Bio Protocol’s token economy and creating economic incentives for publishing negative results.
Why Bio Protocol?
Bio Protocol and NullGraph share a common vision:Decentralized Science
Both protocols aim to remove centralized gatekeepers from scientific publishing and funding.
Solana Settlement
Built on the same Layer 1 blockchain, enabling seamless composability and shared wallet infrastructure.
Token Alignment
BIO tokens power NullGraph’s bounty economy, creating direct economic utility for Bio Protocol’s ecosystem.
Data Integrity
Both use cryptographic proofs (hashes, signatures) to ensure research data provenance and tamper-resistance.
BIO Token in NullGraph
Bounty Denomination
All bounty rewards are paid in BIO tokens:While the field is named
usdc_mint in the current implementation, it refers to the BIO token mint on Solana. This naming will be updated in future versions.Token Economics
BIO flows through the protocol in three paths:| Action | BIO Flow | Fee |
|---|---|---|
| Create Bounty | Creator → Vault | 0% |
| Approve Submission | Vault → Researcher (97.5%) Vault → Treasury (2.5%) | 2.5% |
| Close Bounty | Vault → Creator | 0% |
SPL Token Interface
NullGraph uses Anchor’s SPL Token Interface for all BIO token operations:Why Token Interface?
Token-2022 Ready
Compatible with both SPL Token (legacy) and Token-2022 (new standard) without code changes.
Type Safety
InterfaceAccount<TokenAccount> enforces correct account types at compile time.Future-Proof
Automatically supports new token features (transfer fees, confidential transfers, etc.).
Best Practice
Recommended by Solana Foundation for all new token programs.
Transfer Example
All BIO transfers usetransfer_checked:
transfer_checked?
- Validates mint — ensures tokens are from the correct BIO mint
- Validates decimals — prevents precision errors (e.g., treating 6-decimal tokens as 9-decimal)
- Safer than
transfer— explicit validation at instruction level
BIO Token Decimals
BIO tokens use 6 decimals (same as USDC):Frontend Conversion
On-Chain Validation
The program reads decimals directly from the mint account:decimals doesn’t match the mint, the transaction fails — preventing loss of funds.
Associated Token Accounts (ATAs)
What are ATAs?
ATAs are deterministic token accounts derived from a wallet address and token mint:ATA Benefits
Predictable Address
Same wallet + mint always produces the same ATA address.
One Account per Token
Users have exactly one ATA for each token mint they hold.
Easy Lookup
No need to track custom token accounts — derive on-demand.
Standard
Universal across all Solana dApps and wallets.
Creating ATAs
Anchor’s#[account(init, ...)] can automatically create ATAs:
associated_token constraint:
Vault Escrow Mechanism
Bounties lock BIO in PDA-controlled vault accounts:Vault Authority
The vault is its own authority (PDA signer):PDA Signer Seeds
Only the program can sign for the vault using signer seeds:Security: No Private Keys
The vault has no private key. Only the program, using the correct PDA seeds, can authorize transfers. This eliminates custodial risk.
Cross-Program Invocation (CPI)
All token operations use CPI to the SPL Token Interface program:CPI Flow Diagram
CPI allows programs to call other programs atomically — all operations succeed or all fail together.
Bio Protocol Alignment
NullGraph advances Bio Protocol’s core mission:1. Shared Settlement Layer
Both protocols use Solana for:- Fast finality (~400ms)
- Low transaction costs (~$0.00025)
- High throughput (65,000 TPS)
- Composable program architecture
2. BIO Token Utility
NullGraph creates real utility for BIO tokens:Bounty Payments
BioDAOs spend BIO to acquire valuable null results
Researcher Incentives
Researchers earn BIO for publishing negative data
Protocol Fees
Treasury accumulates BIO for ecosystem development
Liquidity Demand
More bounties = more BIO demand = stronger token economics
3. Data Provenance
NullGraph uses SHA-256 hashing (same as Bio Protocol) for data integrity:- ✅ Tamper-proof — changing one byte invalidates the hash
- ✅ Verifiable — anyone can recompute and verify
- ✅ Permanent — stored on-chain forever
- ✅ Privacy-preserving — hash reveals nothing about data contents
4. BioDAO Integration
BioDAOs can use NullGraph to:Future Integrations
Decentralized Verification
Community-driven NKA validation network with BIO token incentives
Knowledge Graph Indexing
On-chain graph linking NKAs by hypothesis, methodology, and outcomes
BioDAO Governance
DAO-controlled treasury and protocol parameters
Cross-Chain Bridge
Integrate with Bio Protocol’s Ethereum contracts via Wormhole
Code Example: BIO Transfer
Complete example of transferring BIO from vault to researcher:Querying BIO Balances
Check user’s BIO balance:Next Steps
Null Knowledge Assets
Learn how NKAs store scientific data on-chain
Bounty Marketplace
Explore how to create and fulfill BIO-denominated bounties