internet-court/internet-court-skill/switchboard
- community
Checking that the SKILL.md file is still in the repository.
Complete Switchboard Oracle Protocol SDK for Solana - the permissionless oracle solution for price feeds, on-demand data, VRF randomness, and real-time streaming via Surge. Covers TypeScript SDK, Rust integration, Oracle Quotes, and all Switchboard tools.
Install
npx vskill@latest install internet-court/internet-court-skill/switchboardSKILL.md
Switchboard Oracle Protocol - Complete Integration Guide
The definitive guide for integrating Switchboard - the fastest, most customizable, and only permissionless oracle protocol on Solana.
What is Switchboard?
Switchboard is a permissionless oracle protocol enabling developers to bring custom data on-chain with industry-leading performance:
- Price Feeds - Real-time asset pricing with pull-based efficiency
- Oracle Quotes - Sub-second latency without on-chain storage (90% cost reduction)
- Surge - WebSocket streaming with sub-100ms latency
- VRF Randomness - Cryptographically secure verifiable random functions
- Prediction Markets - Market-based forecasting data
Key Statistics
- Secures $1B+ in on-chain volume
- Used by Kamino, Jito, MarginFi, Drift Protocol
- 2-5ms latency with Surge pricing
- 90% cost reduction vs traditional oracles
Core Principles
| Principle | Description | |
|---|---|---|
| Speed | 2-5ms with Surge, 400ms standard - industry-leading for DeFi | |
| Cost Efficiency | Pull-based feeds eliminate constant streaming costs | |
| Permissionless | Deploy feeds instantly without approvals | |
| Security | TEE (Trusted Execution Environments) prevent data manipulation |
Integration Approaches
1. Oracle Quotes (Recommended)
Direct oracle-to-program data flow without on-chain storage:
- Sub-second latency
- 90% cost reduction
- No write locks (parallel reads)
- Stateless design
2. Traditional Feeds
Classic pull-based feed updates:
- Feed account maintenance
- Cranking operations
- Good for simple use cases
3. Surge (Real-Time)
WebSocket streaming for high-frequency applications:
- Sub-100ms latency
- Persistent connections
- Ideal for trading interfaces
Program IDs
| Program | Mainnet | Devnet | |
|---|---|---|---|
| Oracle Program | SW1TCH7qEPTdLsDHRgPuMQjbQxKdH2aBStViMFnt64f | Aio4gaXjXzJNVLtzwtNVmSqGKpANtXhybbkhtAC94ji2 | |
| Quote Program | orac1eFjzWL5R3RbbdMV68K9H6TaCVVcL6LjvQQWAbz | - |
Default Queues
| Network | Queue Address | |
|---|---|---|
| Mainnet | A43DyUGA7s8eXPxqEjJY6EBu1KKbNgfxF8h17VAHn13w | |
| Devnet | EYiAmGSdsQTuCw413V5BzaruWuCCSDgTPtBGvLkXHbe7 |
Quick Start
Installation
Basic Setup
Price Feeds
Fetch and Update Feed
Read Feed Value
Oracle Quotes (Recommended)
Oracle Quotes provide the most efficient way to consume oracle data:
Rust Integration (Oracle Quotes)
Surge (Real-Time Streaming)
For applications requiring real-time price updates:
VRF Randomness
Cryptographically secure on-chain randomness:
TypeScript Client
Rust Integration
Creating Custom Feeds
Using Feed Builder UI
- Visit ondemand.switchboard.xyz
- Click "Create Feed"
- Configure data sources and aggregation
- Deploy to mainnet/devnet
- Copy feed hash for integration
Using TypeScript SDK
Framework Comparison
| Aspect | Anchor (Basic) | Pinocchio (Advanced) | |
|---|---|---|---|
| Learning Curve | Beginner-friendly | Advanced only | |
| Compute Units | ~2,000 CU | ~190 CU | |
| Safety Model | Full validation | Trusted cranker | |
| Use Cases | Standard DeFi | Oracle AMMs, HFT |
Best Practices
1. Staleness Checks
Always verify feed freshness:
2. Multiple Signatures
Request multiple oracle signatures for critical operations:
3. Error Handling
4. Compute Budget
For complex operations, increase compute budget:
Resources
Official Links
- Documentation: https://docs.switchboard.xyz
-- Feed Builder: https://ondemand.switchboard.xyz
GitHub Repositories
| Repository | Description | |
|---|---|---|
| switchboard-sdk | Public mirror of Switchboard SDKs | |
| sb-on-demand-examples | Integration examples | |
| solana-sdk | Rust SDK | |
| on-demand | TypeScript SDK |
Community
- Discord: https://discord.gg/TJAv6ZYvPC
- Twitter: @switchboardxyz
Skill Structure
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingvendored/sendaifun/switchboard/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/internet-court/internet-court-skill/switchboard)