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.
Custom transactions
10.1.
Transaction builders
10.2.
Custom contract and script calls
11.
Types
11.1.
Bytes32
11.2.
Address
11.3.
ContractId
11.4.
AssetId
11.5.
Bech32
11.6.
Structs and enums
11.7.
String
11.8.
Bits256
11.9.
Bytes
11.10.
B512
11.11.
EvmAddress
11.12.
Vectors
11.13.
Converting types
12.
Codec
12.1.
Encoding
12.2.
Decoding
13.
API Reference
14.
Testing
14.1.
Testing basics
14.2.
The setup_program_test! macro
14.3.
Tweaking the blockchain
15.
Cookbook
15.1.
Custom consensus parameters
15.2.
Deposit and Withdraw
15.3.
Transfer all assets
16.
Debugging
16.1.
The Function selector
17.
Glossary
18.
Contributing
18.1.
Integration tests structure
19.
Command Line Interfaces
19.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