Back to Fuels Ts

Fuel ASM

apps/docs/src/guide/fuel-asm/index.md

0.103.0948 B
Original Source

Fuel ASM

Instruction set for the FuelVM.


This is a wrapped WASM version of the fuel-asm Rust crate:

Usage

This example demonstrates how to use the FuelAsm to create a program, represented as a vector of instructions, and then convert it to bytes.

<<< @./snippets/fuel-asm.ts#main{ts:line-numbers}

Reference

The above usage is the Typescript equivalent of the original example in Rust.

<<< @../../../../fuel-asm-example/src/main.rs#main{rs:line-numbers}

See Also