bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 13쪽 중 7쪽
raction clients
Each of these topics is covered in dedicated documentation sections with comprehensive examples and best practices.
Related Resources
Source Code
:
GitHub Repository
Type Conversions
:
Solidity to Rust Type Mapping
Examples
:
Contract Examples Directory
Build with the Fluentbase SDK
Architecture Overview
Supported Types
Modules
1.
crates
3.
e2e
Contract Development Patterns
1. Simple Contracts
2. Router-Based Contracts
3. Storage-Enabled Contracts
Development Workflow
Current Features and Limitations
Features
Limitations
Next Steps
Related Resources
## /developer-guides/building-a-blended-app
On this page
Introduction
This guide provides detailed instructions on how to build a blended application on Fluent.
It combines a Rust smart contract to return value types to a Solidity smart contract.
🎨
Summary
This setup demonstrates:
composability between different programming languages (Solidity and Rust)
and interoperability between different virtual machine targets (EVM and Wasm)
within a single execution environment.
🧱
Prerequisite
Rust and Cargo
: find the installation instructions
here
EVM compatible wallet
for Remix IDE
Node.js and npm
(or equivalent): find the installation instructions
here
gblend
: find the installation instructions
here
If these are set up, get ready to start blending on the next page!
Introduction
## /infrastructure
On this page
Infrastructure Overview
While
Fluent is fundamentally app-first in our approach
, we recognize that no ecosystem can thrive without robust infrastructure providers. Our philosophy is simple: we don't just add random infrastructure partners. We carefully curate those that provide the exact services needed to empower developers to build truly differentiated, blended applications.
We strike a deliberate balance between flexibility and being opinionated. Every infrastructure partner we integrate is chosen because they offer specific capabilities that unlock new possibilities for blended app development. This curated approach ensures that developers have access to the right tools at the right time, without being overwhelmed by unnecessary complexity.
Live Infrastructure Partners
Our mainnet is supported by the following infrastructure partners:
Quicknode
: RPC provider and faucet services for internal and ecosystem teams
Privy
: Smart and embedded wallets with social login support
Pyth
: Real-time price feeds and event streaming
Safe
: Multi-chain wallet, multi-sig, and transaction management
thirdweb
: RPC provider and native point of sale services like Checkout and Pay
Hyperlane
: Cross-chain messaging and interoperability
Goldsky
: Blockchain indexing and data infrastructure
ZeroDev
: Account abstraction and gasless/sponsored transactions
BitGo
: Multi-chain wallet and transaction management
Blockscout
: Open-source blockchain explorer for inspecting, analyzing, and interacting with blockchains
Swapper
: On-ramping infrastructure
🔍
Coming soon: dedicated developer guides
We're working on comprehensive developer guides for each infrastructure provider. These guides will include step-by-step tutorials, code examples, and best practices for integrating across Fluent's mainnet and testnet environments. Stay tuned for detailed documentation on how to leverage each partner's services in your Fluent applications.
Infrastructure Overview
Live Infrastructure Partners
## /knowledge-base/blended-101
On this page
Blended Execution
What is Blended Execution?
Blended execution allows programs written for different virtual machines (VMs) to work together within a unified execution environment. Smart contracts, programming languages and tools built for disparate VMs share the same blockchain state, allowing them to communicate seamlessly. This results in real-time, atomic composability between these otherwise isolated paradigms, making it possible for developers to create cohesive applications, leveraging multiple programming languages and tools without compatibility concerns. It also enables existing apps built for different VMs to benefit from combined network effects and shared liquidity.
💡
The upside?
Users can interact with apps across a blended execution network without needing to bridge or switch wallets.
How does Fluent Support Blended Execution?
On Fluent, functionalities of the EVM, SVM, and Wasm are
blended
together at the execution layer. This is achieved through rWasm—a low-level intermediate representation (IR) which serves as
Fluent’s VM
. rWasm is effectively a state verification function responsible for representing every operation within the Fluent execution layer. Fluent simulates the behaviors of the EVM, SVM, and Wasm, which are compiled down to rWasm for execution. This ensures compatibility and smooth interaction across these diverse systems and is optimal from a zk-proving standpoint, as only one state transition (as opposed to multiple, as with multiVM solutions) is ultimately proven. Fluent’s blended design is also extensible - with the potential to represent additional VMs with dedicated AOT/JIT compilers.
What is an AltVM
An
altVM
(alternative virtual machine) generally refers to a VM that serves as an alternative to the EVM, which is the most widely used VM for executing smart contracts. AltVMs can support different execution environments, architectures, or technologies that are not inherently compatible with the EVM. AltVMs often aim to provide different functionalities or efficiencies, such as supporting multiple programming languages, improved performance, or lower costs for executing smart contracts. Examples include Wasm-based VMs, which enable developers to write contracts in languages like Rust, Go, or C++, and the MoveVM for its formal verification security properties. In the context of blockchain systems, altVMs enhance the flexibility and expressivity of decentralized applications by allowing developers to use a broader range of development tools and programming paradigms compared to the traditional EVM.
Blended Execution vs MultiVM
MultiVM
is a type of
altVM
that uses multiple, separate virtual machines within the same network. Each VM operates independently, and caters to different programming languages or execution environments. Maintaining separate VMs introduces complexity, particularly when it comes to state synchronization and cross-VM interactions.This can lead to a fragmented developer and user experience, as interactions across environments require additional coordination.
Blended Execution
, on the other hand, is a more integrated approach compared to multiVM. Instead of maintaining separate VMs that interact, Blended Execution brings different VMs together into a unified execution environment. This allows multiple VMs to share the same state and execute seamlessly within the same framework. It is also optimal from a zk-proving standpoint, as only one state transition is ultimately proven. In essence, the main difference lies at the integration level.
What is a Blended App?
A blended app is an app that operates within a blended environment and takes full advantage of the unique ability to use multiple VM targets, such as the EVM and Wasm, within a single, unified framework.
💡
How does it benefit devs?
This enables developers to write different parts of an application in the language and execution environment best suited to each component, resulting in better performance, flexibility, and usability.
Blended Execution
What is Blended Execution?
How does Fluent Support Blended Execution?
What is an AltVM
Blended Execution vs MultiVM
What is a Blended App?
## /glossary
On this page
The Fluent VM
Fluent's rWasm (reduced WebAssembly) virtual machine (VM) is a versatile VM that simulates the execution environment (EE) of multiple distinct VMs including Wasm, the EVM, the SVM, and more.
This allows for atomically composable apps using distinct programming language(s) and standards on a shared state execution environment. Each supported EE compiles to rWasm for execution, which employs a fully compatible Wasm binary representation optimized for zero-knowledge (zk) operations.
rWasm
rWasm (reduced WebAssembly) is Fluent's execution substrate. It is a simplified, deterministic subset of the Wasm binary format, designed so every program running on Fluent — from ordinary smart contracts to the runtimes that execute other VMs on top of it — can be proven under zero-knowledge without the full complexity of standard Wasm.
Where standard Wasm is optimized for fast execution in browsers and servers, rWasm is optimized for verifiability. Memory semantics are stricter, trap behaviour is deterministic, and engine-metered fuel replaces ad-hoc gas accounting. EVM bytecode runs under rWasm through a delegated runtime; native Wasm contracts map to it directly; future VM integrations follow the same pattern.
For most developers rWasm is invisible — you write Solidity or Rust, deploy, and the runtime router picks the right execution path. It becomes visible at the edges: when querying raw account data for a proof, when reasoning about fuel versus gas, or when auditing the boundary between runtime and host. See
Architecture Overview
.
The Fluent L2
The Fluent L2 is an Ethereum-centric zk-rollup for Wasm, EVM, and SVM based apps. It supports real-time composability between apps targeting different VMs, and "blended" apps composed of smart contracts mixed and matched between them. Interaction between the different types of contracts on the L2 happens under the hood and is both atomic and happens in real-time.
The Fluentbase Framework
The Fluentbase framework is used to deploy smart contracts on Fluent as well as blockchains and verifiable compute environments that compile to rWasm. The framework's execution layer supports arbitrary compute and the emulation of multiple VM targets.
Fluentbase is optimized for proving efficiency and integrates with modular components (sequencers, DA layers, etc.) for the deployment of customizable blended execution networks.
Ownable Account
An ownable account is how Fluent attaches execution logic to an account without storing runtime bytecode inside every account that uses it. Most contracts on Fluent (Solidity, Universal Token) live in an account whose code field is a small wrapper carrying a magic header (
0xEF44
), an
owner_address
pointing to a delegated runtime, and runtime-specific metadata. When the account is called, REVM loads the executable code from the owner, not from the account itself — while keeping the original account as the storage target. Wasm contracts are stored differently: their compiled rWasm sits at the account directly (magic prefix
0xEF52
) without the wrapper indirection.
This separation — account identity is local, execution logic is delegated — is what lets one state machine host EVM, Wasm, and SVM contracts together. A Solidity contract and a Rust contract end up as two ownable accounts pointing at two different delegated runtimes. They share the state trie, can call each other atomically, and the host mediates every privileged operation between them with the same rules.
Ownership is set at deployment time based on the init code's magic prefix, and it cannot change afterwards — the account's execution class is part of its identity. See
Runtime Routing and Ownable Accounts
.
Delegated Runtime
A delegated runtime is the execution code that an ownable account points at. Each supported VM family has its own: the delegated EVM runtime executes EVM bytecode, the delegated Wasm runtime executes Wasm, the Universal Token runtime implements a shared token surface, and future runtimes (like SVM) plug in the same way.
Delegated runtimes are protocol-owned: their bytecode lives at fixed system addresses, is installed and replaced through a governed upgrade path, and is shared by every account that opts into its execution class. A bug fix or behaviour change in the delegated EVM runtime affects every EVM contract on Fluent at once — which is why runtime upgrades are treated as fork-critical change management.
Delegated runtime addresses are not callable directly as normal contracts; the router blocks that path to keep user flows going through ownable-account semantics. See
Runtime Routing and Ownable Accounts
.
Interruption Protocol
The interruption protocol is the mechanism through which every privileged operation on Fluent is performed. Runtime code cannot touch shared state directly — when a contract needs to read storage, emit a log, spawn a nested call, or do anything else that affects state outside its own memory, it yields control to the host. The host performs the operation, validates it against protocol rules, and resumes the runtime from the saved execution point.
The handshake has two verbs:
exec
starts or resumes a runtime frame with a fuel budget, and
resume
hands control back after a privileged action. A positive exit code from the runtime is a
call_id
— a handle into a saved resumable context — not a final status. The host uses this protocol to keep consensus-critical rules (ordering, charging, validation) in one place while allowing multiple runtime families to coexist on top.
See
Interruption and Syscalls
for the full handshake, syscall surfaces, and safety boundaries.
Fuel
Fuel is Fluent's internal unit of runtime execution accounting. Where gas tracks EVM-visible economics — the same unit wallets quote, explorers display, and transactions pay in ETH — fuel meters the underlying rWasm work: every runtime step, every syscall, every host operation is charged in fuel.
Gas and fuel are linked by a fixed deterministic conversion ratio (
FUEL_DENOM_RATE = 20
: each gas unit buys 20 fuel). At the start of a call the host derives a fuel budget from the remaining gas; when the runtime returns, any consumed or refunded fuel is translated back into gas settlement. Rounding behaviour at the conversion boundary is part of consensus correctness — every node performs it identically.
For most smart contract development, fuel is invisible. It matters if you are writing a gas estimator, building a custom runtime, or auditing privileged charging paths. See
Gas and Fuel
.
Virtual Machine (VM)
A virtual machine (VM) in the context of blockchains is a sandbox environment that executes smart contracts. Examples include the Ethereum Virtual Machine (EVM) and the Solana Virtual Machine (SVM).
Execution Environment (EE)
The execution environment (EE) refers to the entire system where blockchain transactions are processed. It encompasses the state transition function (STF) of a protocol, which includes the virtual machine (VM) and additional protocol-specific checks and balances necessary for the network's operation.
These checks may involve gas calculations, nonce verification, and balance updates to ensure the proper execution of transactions.
Blended Execution Network
A blended execution network supports real-time composability between apps targeting different VMs on a shared execution layer. It enables applications written for different VMs to interact seamlessly within the same state machine.
This allows developers to leverage the best features and tools from various VMs without fragmenting user experience. In a blended execution environment, smart contracts from different VMs share state; interoperability between these contracts is atomic and synchronous, providing a unified platform for diverse smart contract applications.
Zk-Rollup
Zk-rollups are blockchain-based execution environments that post compressed data to the same onchain data availability network as the one responsible for verifying its cryptographic proofs. Proofs are examined and validated by a "verifier," which cryptographically ensures the integrity of all transactions.
Preconfirmation
Preconfirmation is the fast-finality step in Fluent's rollup pipeline. After a sequencer commits a batch and publishes its data to L1, a trusted-execution-environment (TEE) verifier — an AWS Nitro enclave whose signing key is cryptographically bound to a specific enclave image via an SP1-verified attestation — signs the batch root. This signed batch reaches the Preconfirmed state on the rollup contract well before the challenge window elapses, giving users a rapid execution attestation they can trust operationally.
Preconfirmation is not the same as finalization. A preconfirmed batch is still challengeable; if a successful challenge proves it wrong, the batch can be reverted. Finalization happens later — either after a delay window without unresolved challenges, or immediately once all block commitments have been cryptographically proven.
This distinction matters for the bridge: L2 → L1 withdrawals from a preconfirmed-but-not-finalized batch enter an optimistic path guarded by a per-token rate cap. Finalized withdrawals are unrestricted. See
Rollup Architecture
.
Wasm
Wasm (WebAssembly) is a low-level, portable binary format and compilation target for high-level programming languages. General-purpose programming languages, such as Rust, TypeScript, and C++ compile to Wasm.
It is efficient, secure, and flexible, enabling high-performance web applications like 3D graphics, video editing, gaming, and more. In the blockchain context, networks like Cosmos, Near, Polkadot, and Tezos leverage Wasm for execution.
The Fluent VM
rWasm
The Fluent L2
The Fluentbase Framework
Ownable Account
Delegated Runtime
Interruption Protocol
Fuel
Virtual Machine (VM)
Execution Environment (EE)
Blended Execution Network
Zk-Rollup
Preconfirmation
Wasm
## /resources
On this page
Awesome Fluent Resources
Awesome Fluent
A curated list of resources, tools, libraries, and guides for building with Fluent.
Tech Book
The book contains technical details regarding Fluent and Fluentbase implementations.
Awesome Fluent
A curated list of resources, tools, libraries, and guides for building with Fluent.
Tech book
The book contains technical details regarding Fluent and Fluentbase implementations.
Awesome Fluent Resources
## /contribute
On this page
Welcome Contributors! 🎉
We're excited that you want to contribute to Fluent documentation! Your contributions help make our docs better for everyone in the Fluent ecosystem.
🧱
Ready to Get Started?
Check out our comprehensive
Contributing Guidelines
for everything you need to know!
Quick Start
To contribute to the Fluent documentation written in Docusaurus, fork the following GitHub repo:
https://github.com/fluentlabs-xyz/docs-docusaurus
Then create a branch to modify changes locally. There's a detailed guide to test changes locally with Docusaurus in the GitHub project README.
Once tests are done locally, open a pull request for review. Make sure your changes have no build errors and that the Cloudflare Pages preview has no unexpected behavior.
💡
What Can You Contribute?
📝
Documentation improvements
- Fix typos, clarify explanations, add examples
🌐
Translations
- Help make docs accessible to more developers
🐛
Bug reports
- Help us identify and fix documentation issues
And finally, for more advanced contributors:
🆕
New guides
- Help others learn with step-by-step tutorials
🔧
Code examples
- Share working code snippets and demos
Need Help?
Questions?
Join our
Discord community
in the #developer-forum channel
Guidelines?
Check out our
Contributing Guidelines
for detailed instructions
Issues?
Search existing issues or create a new one on GitHub
Thank you for helping make Fluent documentation better for everyone!
✨
Welcome Contributors! 🎉
Quick Start
Need Help?
## /system-architecture/precompiles/wasm-runtime
On this page
The delegated WASM runtime dispatches calls and creates targeting Wasm contracts. Init code starting with the WASM magic preamble is routed here at deploy time.
Address
Constant
Address
PRECOMPILE_WASM_RUNT프로젝트로 돌아가기