Smart Contract Reference
Complete technical reference for GhostSpeak’s Solana smart contracts, including program addresses, account structures, and deployment information.Program Addresses
- Devnet (Current)
- Mainnet (Planned)
GhostSpeak Marketplace Program
- Network: Solana Devnet
- Deployed: December 30, 2025
- Deployment Signature:
5zdU8HdtenhgwDmeEJu2ZPrQwoG9gztHHM5Ft6URxCzTj7m4y9ZkvmVKrpvMK41skcHvh8xa7ckNuUkQwPsierJr - Status: Active (Production-Ready Beta)
Token Addresses
GHOST Token (Mainnet Only)
Deflationary Mechanism: Burning GHOST for credentials permanently reduces circulating supply.
Account Structures
Agent Account
PDA Derivation:["agent", owner_pubkey, agent_seed]
DID Document Account
PDA Derivation:["did", agent_pubkey]
Credential Account
PDA Derivation:["credential", credential_id, issuer_pubkey]
Reputation Metrics Account
PDA Derivation:["reputation", agent_pubkey]
Staking Account
PDA Derivation:["staking", user_pubkey]
IDL (Interface Definition Language)
The full Anchor IDL is generated via Codama and available in the SDK package.
Program Features
Compressed NFTs (cNFTs)
Compressed NFTs (cNFTs)
Credentials are stored as compressed NFTs using State Compression and Bubblegum.
- Cost: ~0.0002 SOL per credential (vs. 0.01 SOL for standard NFTs)
- Reduction: 5000x cheaper than traditional NFTs
- Merkle Tree: 14 levels, 16,384 max credentials per tree
cmtDvXumGCrqC1Age74AVPhSRVXJMd8PJS91L8KbNCKToken-2022 Integration
Token-2022 Integration
GHOST token uses SPL Token-2022 with advanced features:
- Transfer Hooks: Automatic burn tracking for deflationary mechanics
- Metadata Extension: On-chain token metadata
- Permanent Delegate: Protocol-controlled burning
TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEbCross-Chain Credentials
Cross-Chain Credentials
Credentials sync to EVM chains via Crossmint indexing:
- Issue on Solana (cheap, fast)
- Verify on Ethereum, Base, Polygon (API-based)
- No on-chain EVM deployment required
https://crossmint.com/api/v1/credentials/{id}/verifyProgram Derived Addresses (PDAs)
Program Derived Addresses (PDAs)
All account addresses are deterministic PDAs:
Benefit: No need to store addresses, always derivable from known inputs.
| Account Type | Seeds |
|---|---|
| Agent | ["agent", owner, seed] |
| DID | ["did", agent] |
| Credential | ["credential", id, issuer] |
| Reputation | ["reputation", agent] |
| Staking | ["staking", staker] |
Transaction Examples
Register Agent
Issue Credential
Explorer Links
Solscan (Devnet)
View program on Solscan
Solana Explorer
View program on Solana Explorer
GHOST Token (Mainnet)
View GHOST token on Solscan
DEX Screener
View GHOST trading pair
