The Fuel Rust SDK
1.
Getting Started
1.1.
Setup and Run
1.2.
Terminology
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.
Querying the blockchain
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.
Interacting with contracts
6.3.
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
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.
API Reference
12.
Testing
12.1.
Testing basics
12.2.
The setup_program_test! macro
12.3.
Tweaking the blockchain
13.
Cookbook
13.1.
Custom consensus parameters
13.2.
Deposit and Withdraw
13.3.
Transfer all assets
14.
Debugging
14.1.
The Function selector
15.
Contributing
15.1.
Integration tests structure
16.
Command Line Interfaces
16.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