A collection of libraries and examples for interacting with Switchboard V2 on Solana.
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
The following addresses can be used with the Switchboard deployment on Solana
Account | Address |
---|---|
Program ID | SW1TCH7qEPTdLsDHRgPuMQjbQxKdH2aBStViMFnt64f |
Program Authority | 2NvGRFswVx3GXxURNSfjbsWY4iP1ufj8LvAKJWGXSm4D |
IdlAddress | Fi8vncGpNKbq62gPo56G4toCehWNy77GgqGkTaAF5Lkk |
Permissioned Queue | 3HBb2DQqDfuMdzWxNk1Eo9RTMkFYmuEAd32RiLKn9pAn |
Permissionless Queue | 5JYwqvKkqp35w8Nq3ba4z1WYUeJQ1rB36V8XvaGp6zn1 |
Account | Address |
---|---|
Program ID | SW1TCH7qEPTdLsDHRgPuMQjbQxKdH2aBStViMFnt64f |
Program Authority | 2KgowxogBrGqRcgXQEmqFvC3PGtCu66qERNJevYW8Ajh |
IdlAddress | Fi8vncGpNKbq62gPo56G4toCehWNy77GgqGkTaAF5Lkk |
Permissioned Queue | PeRMnAqNqHQYHUuCBEjhm1XPeVTh4BxjY4t4TPan1pG |
Permissionless Queue | uPeRMdfPmrPqgRWSrjAnAkH78RqAhe5kXoW6vBYRqFX |
Lang | Name | Description |
---|---|---|
Rust | switchboard-v2 | A Rust library to interact with Switchboard V2 accounts on Solana. |
Javascript | @switchboard-xyz/solana.js | A Typescript client to interact with Switchboard on Solana. |
Lang | Name | Description |
---|---|---|
Rust | native-feed-parser | Read a Switchboard feed using Solana's native program library |
Anchor | anchor-feed-parser | Read a Switchboard feed using Anchor |
Anchor | anchor-history-parser | Read a data feeds history buffer and get the closest historical sample to a given timestamp |
Anchor | anchor-vrf-parser | Read a Switchboard VRF account and make a Cross Program Invocation (CPI) to request a new randomness value |
Anchor | anchor-vrf-lite-parser | Read a Switchboard VRF Lite account and make a Cross Program Invocation (CPI) to request a new randomness value |
Anchor | anchor-buffer-parser | Read a Switchboard buffer relayer using Anchor |
Javascript | javascript-feed-walkthrough | Create a private Switchboard queue and oracle and fulfill your own oracle updates |
- File a GitHub Issue
- Ask a question in Discord #dev-support