The Fuel Rust SDK
1.
Getting Started
1.1.
Setup and Run
1.2.
Terminology
1.3.
Connecting to a Fuel node
1.3.1.
Connecting to the Testnet or an external node
1.3.2.
Running a short-lived Fuel node with the SDK
1.3.3.
Querying the blockchain
1.4.
Managing wallets
1.4.1.
Creating a wallet from a private key
1.4.2.
Creating a wallet from mnemonic phrases
1.4.3.
Wallet Access
1.4.4.
Encrypting and storing wallets
1.4.5.
Checking balances and coins
1.4.6.
Setting up test wallets
1.4.7.
Signing
1.4.8.
Transferring assets
1.5.
Generating bindings with abigen!
1.5.1.
The JSON ABI file
1.5.2.
The abigen! macro
1.6.
Deploying contracts
1.6.1.
Interacting with contracts
1.6.2.
The FuelVM Binary file
1.7.
Calling contracts
1.7.1.
Connecting wallets
1.7.2.
Transaction parameters
1.7.3.
Call parameters
1.7.4.
Call response
1.7.5.
Logs
1.7.6.
Variable outputs and messages
1.7.7.
Read-only calls
1.7.8.
Calling other contracts
1.7.9.
Multiple contract calls
1.7.10.
Transaction dependency estimation
1.7.11.
Estimating cost
1.8.
Running scripts
1.9.
Predicates
1.9.1.
Predicate data
1.9.2.
Signatures example
1.10.
Types
1.10.1.
Bytes32
1.10.2.
Address
1.10.3.
ContractId
1.10.4.
AssetId
1.10.5.
Converting native types
1.10.6.
Bech32
1.10.7.
Structs and enums
1.10.8.
String
1.10.9.
Bits256
1.10.10.
B512
1.10.11.
EvmAddress
1.10.12.
Vectors
2.
API
3.
Debugging
3.1.
Debugging abigen errors
3.2.
Debugging contract call errors
3.3.
Debugging network errors
3.4.
The Function selector
4.
Testing
4.1.
Tweaking the blockchain
4.2.
The setup_contract_test! macro
5.
Cookbook
5.1.
Custom consensus parameters
5.2.
Deposit and Withdraw
5.3.
Transfer all assets
6.
Contributing
6.1.
Integration tests structure
7.
Command Line Interfaces
7.1.
fuels-abi-cli
Light (default)
Rust
Coal
Navy
Ayu
The Fuel Rust SDK
Debugging abigen errors