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
7.
Calling contracts
7.1.
Connecting wallets
7.2.
Transaction parameters
7.3.
Call parameters
7.4.
Custom asset transfer
7.5.
Call response
7.6.
Logs
7.7.
Variable outputs and messages
7.8.
Read-only 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.
Types
10.1.
Bytes32
10.2.
Address
10.3.
ContractId
10.4.
AssetId
10.5.
Converting native types
10.6.
Bech32
10.7.
Structs and enums
10.8.
String
10.9.
Bits256
10.10.
B512
10.11.
EvmAddress
10.12.
Vectors
11.
Codec
11.1.
Encoding
11.2.
Decoding
12.
API Reference
13.
Testing
13.1.
Testing basics
13.2.
The setup_program_test! macro
13.3.
Tweaking the blockchain
14.
Cookbook
14.1.
Custom consensus parameters
14.2.
Deposit and Withdraw
14.3.
Transfer all assets
15.
Debugging
15.1.
The Function selector
16.
Glossary
17.
Contributing
17.1.
Integration tests structure
18.
Command Line Interfaces
18.1.
fuels-abi-cli
Light (default)
Rust
Coal
Navy
Ayu
The Fuel Rust SDK
Debugging
note
This section is still a work in progress.
The Function Selector