• 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.

    Parameters

    • solanaRPCUrl: string = ...

      Solana RPC endpoint URL (defaults to mainnet)

    Returns Promise<Queue>

    The default queue instance

    // Get default queue for current network
    const queue = await getDefaultQueue();

    // Specify custom RPC
    const queue = await getDefaultQueue('https://api.devnet.solana.com');