Liquid Stake with compassSOL for an 7.31% APY from staking, MEV + fees

Enjoy the freedom of liquid staking in Solana Defi while delegating your stake to the high performance Solana Compass validator. Stake or unstake at any time here, or with a Jupiter swap.

Benefit from our high staking returns and over 2 years experience operating a Solana validator, and receive additional yield from priority fees + MEV tips

Earn 6.2% APY staking with Solana Compass

Help decentralize and secure the Solana network delegating your stake to us and earn an impressive 6.2% APY yield on your SOL, while supporting us to create new guides and tools. Learn more

Stake your SOL

  1. Click to connect your wallet
  2. Enter the amount you wish to stake
  3. Kick back and enjoy your returns
  4. Unstake from your wallet or our staking dashboard

Earn 6.2% APY staking with Solana Compass

Help decentralize and secure the Solana network delegating your stake to us and earn an impressive 6.2% APY yield on your SOL, while supporting us to create new guides and tools.

Learn more

BP 2024: Workshop: SVM: The Power of Solana Beyond the Blockchain

By breakpoint-24

Published on 2024-09-21

Solana Virtual Machine (SVM) enables developers to leverage Solana's power beyond the blockchain, opening up new possibilities for off-chain services, state channels, rollups, and more.

The notes below are AI generated and may not be 100% accurate. Watch the video to be sure!

Solana's ecosystem is about to experience a seismic shift with the introduction of the Solana Virtual Machine (SVM) for off-chain use. This groundbreaking development promises to unlock a world of possibilities for developers, enabling them to harness Solana's power beyond the confines of the blockchain itself.

Summary

In a workshop at Breakpoint 2024, Lucas Steuernagel and Joe Caulfield, both software engineers working on Solana's runtime, introduced the Solana Virtual Machine (SVM) and its potential applications beyond the blockchain. The SVM, which has been decoupled from the Solana validator, now offers developers the ability to process transactions and execute Solana programs in various off-chain environments.

This innovation opens up a multitude of use cases, including off-chain services, state channels, rollups, and subnets. The presenters demonstrated how the SVM can be used to create a payment channel, significantly reducing the number of on-chain transactions required for settlement.

The SVM API provides developers with a streamlined way to process transactions, manage accounts, and execute programs without the need for a full Solana validator. This decoupling of the SVM from the validator represents a significant step forward in Solana's technology stack, enabling developers to build more efficient and scalable applications.

Key Points:

SVM Decoupling and API

The Solana Virtual Machine has been successfully decoupled from the Solana validator, creating a new product called the Solana Virtual Machine Test Harness. This standalone API allows developers to simulate transaction processing, manage accounts, and execute Solana programs outside of the main blockchain environment.

The SVM API provides a simplified interface for developers to work with, offering core components such as the transaction processor, account database, and program cache. This abstraction allows developers to focus on building their applications without needing to understand or implement the complexities of the full Solana runtime.

Use Cases for SVM

With the SVM now available as a separate tool, developers can leverage its capabilities for a variety of off-chain use cases. Some of the potential applications discussed in the workshop include:

  1. Off-chain services: Developers can emulate transaction processing outside of the main Solana protocol, enabling faster and more cost-effective operations for certain types of applications.

  2. State channels: The SVM can be used to implement state channels, allowing multiple parties to transact off-chain and only settle the final state on the main blockchain.

  3. Rollups: Various types of rollups can be built using the SVM, potentially increasing Solana's scalability and transaction throughput.

  4. Subnets: Similar to other blockchain ecosystems like Avalanche, the SVM could enable the creation of custom subnets or sidechains within the Solana ecosystem.

  5. ZK proofs: While not currently implemented, there are plans to add native support for zero-knowledge proofs using the SVM in the future.

State Channel Example

To demonstrate the practical applications of the SVM, the presenters walked through a live demo of a payment channel implementation. This example showcased how developers can use the SVM API to create an off-chain environment where multiple parties can transact without needing to submit every transaction to the main blockchain.

The payment channel example illustrated how the SVM can be used to process multiple transactions off-chain and then settle the final balances with a single on-chain transaction. This approach can significantly reduce transaction costs and improve scalability for certain types of applications.

The demo also showed how to set up the SVM environment, including configuring the program cache with necessary programs like the SPL Token program and the System program. This setup process demonstrated the flexibility and ease of use of the SVM API for developers.

Facts + Figures

  • The Solana Virtual Machine (SVM) has been decoupled from the Solana validator, creating a new standalone API.
  • The SVM API includes core components such as the transaction processor, account database, and program cache.
  • Potential use cases for the SVM include off-chain services, state channels, rollups, subnets, and potentially ZK proofs in the future.
  • The SVM allows developers to simulate transaction processing without needing a full Solana validator.
  • In the payment channel demo, four off-chain transactions were condensed into a single on-chain transaction for settlement.
  • The SVM API can be set up with just a few lines of code, making it accessible for developers.
  • The SVM includes support for SPL tokens and the System program out of the box.
  • Future plans for the SVM include decoupling the scheduler and adding native support for zero-knowledge proofs.
  • Reference implementations and examples are available in the Solana GitHub repository under the "svm-examples" directory.

Top quotes

  1. "SVM has been heating up pretty quick. There's a lot of projects that have been kind of like rising up for all different use cases and niches to basically use SVM outside of the validator."

  2. "We call this the Solana Virtual Machine Test Harness. This is a simulation processor, a methods processor, and the virtual machine."

  3. "You can just give it some inputs. You give it a list of transactions. You get that entire pipeline with the cache, like the VM, all these things for free."

  4. "The SVM entry point is a load and execute certain types of actions."

  5. "This is kind of like what we would like to have as our on SVM roadmap. So as we're talking about today, we've decoupled this SVM API, which has been super nice to use."

Questions Answered

What is the Solana Virtual Machine (SVM)?

The Solana Virtual Machine (SVM) is a component of the Solana blockchain that has been decoupled from the main validator. It provides a simulation environment for processing transactions, managing accounts, and executing Solana programs. The SVM can now be used independently, allowing developers to leverage Solana's capabilities in off-chain environments and for various use cases beyond the main blockchain.

How can developers use the SVM API?

Developers can use the SVM API to create off-chain services, implement state channels, build rollups, and develop other applications that require Solana's transaction processing capabilities. The API provides a simplified interface for working with Solana's core components, such as the transaction processor, account database, and program cache. Developers can set up the SVM environment with just a few lines of code and focus on building their specific applications.

What are some potential use cases for the SVM?

Some potential use cases for the SVM include off-chain services for faster transaction processing, state channels for efficient off-chain transactions between parties, various types of rollups to improve scalability, subnets or sidechains within the Solana ecosystem, and potentially zero-knowledge proofs in the future. These applications can help improve scalability, reduce costs, and enable new types of decentralized applications on Solana.

How does the SVM improve scalability for Solana applications?

The SVM improves scalability by allowing developers to process transactions off-chain and only settle the final state on the main Solana blockchain. This approach can significantly reduce the number of on-chain transactions required for certain applications. For example, in the payment channel demo presented, four off-chain transactions were condensed into a single on-chain transaction for settlement, reducing the load on the main blockchain and potentially lowering transaction costs.

Where can developers find examples and documentation for using the SVM?

Developers can find reference implementations and examples for using the SVM in the Solana GitHub repository under the "svm-examples" directory. These examples include an RPC service and a state channel implementation. The Solana team plans to add more examples and documentation in the future to help developers understand and utilize the SVM API effectively.


Related Content

Breakpoint 2024: Technical Talk: WTF Is the SVM? (Jarry Xiao)

Jarry Xiao explains the Solana Virtual Machine (SVM) and introduces Alysses Labs' new blockchain, Alice.

The Father of High-Throughput Blockchains: Anatoly Yakovenko (Solana)

Solana's founder discusses the blockchain's origins, technological innovations, and vision for the future of decentralized finance and Web3.

Breakpoint 2024: Product Keynote: Bonsol, ZK Plumbing on Solana (Austin Adams)

Austin Adams introduces Bonsol, an off-chain computer framework that extends Solana's capabilities beyond its current limitations.

Solana Changelog - October 10 - Solana StackExchange, sRFC, and future Feature Activations

Explore Solana's latest updates including the 1.16 release, confidential transfers, SRFCs, and the importance of contributing to Solana StackExchange for AI-powered development assistance.

Breakpoint 2024: Product Keynote: Dabba: Bringing the Next Billion Online

Dabba's founder introduces the concept of Layer Zero DePIN and their mission to bring broadband internet to India

Breakpoint 2024: Product Keynote: Forgd: Tokenomics, Liquidity, and Beyond

Forgd introduces a comprehensive platform for blockchain builders to manage pre-TGE and post-TGE activities on Solana

Solana Changelog July 18 - Active Stake Sysvar and Generating IDLs

Explore the latest Solana developments, including a new SYSVAR for active stake, improvements to Anchor IDL generation, and Switchboard's innovative off-chain functions.

Breakpoint 2023: A World in a Grain of Sand: State Compression on Solana

Exploring the possibilities of blockchain scalability with state compression technology on Solana.

Breakpoint 2024: Product Keynote: In the Blink of an Eye

Chris Osborn introduces Blinks, a revolutionary technology changing how we interact with the internet

Solana Changelog - Token Extensions and Transaction Size Fees

Explore Solana's latest developments including token extensions, transaction size fees, and the upcoming Mountain Dew 5 event in this comprehensive changelog.

Unlayered Episode 3: The Key to the Next Billion - Solana's Mobile Strategy

Discover how Solana's Saga phone and SMS are revolutionizing crypto on mobile, paving the way for mass adoption and seamless Web3 experiences.

Breakpoint 2024: Product Keynote: Bonk for Paws: Only Pawsible on Solana

Bonk for Paws introduces innovative blockchain-based charitable initiative for animal welfare on Solana

Breakpoint 2024: Product Keynote: DRiP: Building the Consumer Application

Vibhu Norby introduces DRiP's new mobile app and announces the public beta for iOS and Android

Solana Changelog - August 8th, 2022 - Offline Signing, QUIC & APR.dev

Explore Solana's newest features including offline message signing, QUIC protocol implementation, and developer resources like APR.dev and Svelte Scaffold.

2024: The End Of EVM Dominance | Rushi Manche

Rushi Manche of Movement Labs shares insights on the evolution of blockchain VMs, L2 scaling, and the potential end of EVM dominance in 2024.