Gets the default Switchboard queue for the specified network
Automatically detects whether you're on mainnet or devnet and returns the appropriate default queue. This is the recommended way to get started with Switchboard On-Demand.
Solana RPC endpoint URL (defaults to mainnet)
The default queue instance
// Get default queue for current networkconst queue = await getDefaultQueue();// Specify custom RPCconst queue = await getDefaultQueue('https://api.devnet.solana.com'); Copy
// Get default queue for current networkconst queue = await getDefaultQueue();// Specify custom RPCconst queue = await getDefaultQueue('https://api.devnet.solana.com');
Gets the default Switchboard queue for the specified network
Automatically detects whether you're on mainnet or devnet and returns the appropriate default queue. This is the recommended way to get started with Switchboard On-Demand.