The Fuel Rust SDK
1.
Getting Started
2.
Connecting to a Fuel node
2.1.
Connecting to the Testnet or an external node
2.2.
Running a short-lived Fuel node with the SDK
2.3.
RocksDB
2.4.
Querying the blockchain
2.5.
Retrying upon errors
3.
Accounts
4.
Managing wallets
4.1.
Creating a wallet from a private key
4.2.
Creating a wallet from mnemonic phrases
4.3.
Wallet Access
4.4.
Encrypting and storing wallets
4.5.
Checking balances and coins
4.6.
Setting up test wallets
4.7.
Signing
5.
Generating bindings with abigen!
5.1.
The JSON ABI file
5.2.
The abigen! macro
6.
Deploying contracts
6.1.
Configurable constants
6.2.
Storage slots
6.3.
Interacting with contracts
6.4.
The FuelVM Binary file
6.5.
Large contracts
7.
Calling contracts
7.1.
Connecting wallets
7.2.
Transaction policies
7.3.
Call parameters
7.4.
Custom asset transfer
7.5.
Call response
7.6.
Logs
7.7.
Variable outputs and messages
7.8.
Simulating calls
7.9.
Calling other contracts
7.10.
Multiple contract calls
7.11.
Transaction dependency estimation
7.12.
Estimating cost
7.13.
Low-level calls
8.
Running scripts
9.
Predicates
9.1.
Signatures example
10.
Pre-uploading code
11.
Custom transactions
11.1.
Transaction builders
11.2.
Custom contract and script calls
12.
Types
12.1.
Bytes32
12.2.
Address
12.3.
ContractId
12.4.
AssetId
12.5.
Bech32
12.6.
Structs and enums
12.7.
String
12.8.
Bits256
12.9.
Bytes
12.10.
B512
12.11.
EvmAddress
12.12.
Vectors
12.13.
Converting types
13.
Codec
13.1.
Encoding
13.2.
Decoding
14.
API Reference
15.
Testing
15.1.
Testing basics
15.2.
The setup_program_test! macro
15.3.
Tweaking the blockchain
16.
Cookbook
16.1.
Custom consensus parameters
16.2.
Deposit and Withdraw
16.3.
Transfer all assets
17.
Debugging
17.1.
The Function selector
17.2.
Decoding script transactions
18.
Glossary
19.
Contributing
19.1.
Integration tests structure
20.
Command Line Interfaces
20.1.
fuels-abi-cli
Light (default)
Rust
Coal
Navy
Ayu
The Fuel Rust SDK
fuels-rs
Testing
note
This section is still a work in progress.
Testing Basics
setup_program_test!
Macro
Tweaking the Blockchain