The Code Virtual Machine (Code VM) is a program that runs on the Solana
blockchain. It is purpose built for payments and reduces transaction fees by up
to 95%
and account rent by 80%
when compared to using non-virtualized
accounts. The VM operates on compact representations of accounts but can further
compress dormant accounts off-chain, effectively reducing rent to zero
.
Compressed accounts can be decompressed when needed — either automatically
using the Code app or manually through a public indexer.
Note
The Code VM is designed specifically to be used by the Code and Flipchat mobile apps, prioritizing seamless payments. As a result, this codebase is not intended as a generalized foundation for other projects.
Network | Address | Audited By | Status | Audit Report | Commit |
---|---|---|---|---|---|
Mainnet | vmZ1WU...5YMRTJ | OtterSec | in progress | - | tbd |
Devnet | J8FLfS...Rr3L24 | - | - | - | - |
✅ The on-chain program itself is largely completed.
✅ Flipchat is using the program in mainnet.
We’re currently integrating the VM into a fork of the Code app called Flipchat. This allows us to make changes to backend services more efficiently without disrupting Code app users.
A key obejctive for us has been that the Code mobile app could be migrated to the VM with minimal effort. From the app’s perspective, it should behave as if it’s using standard Solana accounts. All the VM complexity should be abstracted away by the backend services.
We’re happy to report that this key objective has been achieved on Flipchat — our mobile app team migrated payments using only a handful of minor adjustments to the original transaction mechanics. To enable this from the VM side, we made intentional trade-offs that optimize for core objectives instead of on-chain compute units.
Milestone | Status | VM | Flipchat | Code |
---|---|---|---|---|
Anchor Version | Done | Aug 9th, 2024 | - | - |
Steel Version | Done | Oct 24th, 2024 | - | - |
Audited Release | WIP | tbd | - | - |
IDLs | Done | Oct 30th, 2024 | - | - |
Indexer | Done | - | Aug 15th, 2024 | tbd |
Sequencer | Done | - | November 25th, 2024 | tbd |
Explorer | tbd | |||
Documentation | tbd |
- Install Solana CLI: https://docs.solana.com/de/cli/install-solana-cli-tools
- Open Terminal:
cargo build-sbf & cargo test-sbf -- --nocapture
Please make sure you have the following versions installed:
% rustc --version
rustc 1.76.0 (07dca489a 2024-02-04)
% solana --version
solana-cli 1.18.9 (src:9a7dd9ca; feat:3469865029, client:SolanaLabs)
If you have any questions or need help, please reach out to us on Discord or Twitter.
While we can't guarantee that all feedback will be implemented, we are always open to hearing from the community. If you have any suggestions or feedback, please reach out to us.
In the interest of protecting the security of our users and their funds, we ask that if you discover any security vulnerabilities please report them using this Report a Vulnerability link.