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.
Deploying contracts
1.5.1.
Interacting with contracts
1.5.2.
The FuelVM Binary file
1.5.3.
The JSON ABI file
1.5.4.
The abigen! macro
1.5.5.
The setup_contract_test! macro
1.6.
Calling contracts
1.6.1.
Connecting wallets
1.6.2.
Transaction parameters
1.6.3.
Call parameters
1.6.4.
Call response
1.6.5.
Logs
1.6.6.
Variable outputs
1.6.7.
Read-only calls
1.6.8.
Calling other contracts
1.6.9.
Multiple contract calls
1.6.10.
Estimating cost
1.7.
Running scripts
1.8.
Predicates
1.8.1.
Send and spend funds
1.8.2.
Predicate data
1.9.
Scripts
1.9.1.
Running scripts
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
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 contract call errors