A collection of libraries and examples for interacting with Switchboard V2 on Solana.
Documentation: docs.switchboard.xyz
To get started, clone the sbv2-solana repository.
git clone https://github.com/switchboard-xyz/sbv2-solana
Then install the dependencies
cd sbv2-solana
pnpm install
pnpm build
Network | Program ID |
---|---|
Mainnet-Beta | SW1TCH7qEPTdLsDHRgPuMQjbQxKdH2aBStViMFnt64f |
Devnet | SW1TCH7qEPTdLsDHRgPuMQjbQxKdH2aBStViMFnt64f |
See switchboard.xyz/explorer for a list of feeds deployed on Solana.
See app.switchboard.xyz to create your own Solana feeds.
Lang | Name | Description |
---|---|---|
Rust | switchboard-v2 [Crates.io, Typedocs] |
Rust crate to deserialize and read Switchboard data feeds |
JS | @switchboard-xyz/solana.js [npmjs, Typedocs] |
Typescript package to interact with Switchboard V2 |
Python | switchboardpy [pypi, Typedocs] |
Python package to interact with Switchboard V2. No longer maintained |
- native-feed-parser: Read a Switchboard feed using Solana's native program library
- anchor-feed-parser: Read a Switchboard feed using Anchor
- anchor-history-parser: Read a Switchboard history buffer using Anchor
- anchor-vrf-parser: Read a Switchboard VRF account and make a Cross Program Invocation (CPI) to request a new randomness value
- anchor-buffer-parser: Read a Switchboard buffer relayer using Anchor
- File a GitHub Issue
- Ask a question in Discord #dev-support