1. The Fuel Rust SDK
  2. 1. Getting Started
    1. 1.1. Setup and Run
    2. 1.2. Terminology
  3. 2. Connecting to a Fuel node
    1. 2.1. Connecting to the Testnet or an external node
    2. 2.2. Running a short-lived Fuel node with the SDK
    3. 2.3. Querying the blockchain
  4. 3. Accounts
  5. 4. Managing wallets
    1. 4.1. Creating a wallet from a private key
    2. 4.2. Creating a wallet from mnemonic phrases
    3. 4.3. Wallet Access
    4. 4.4. Encrypting and storing wallets
    5. 4.5. Checking balances and coins
    6. 4.6. Setting up test wallets
    7. 4.7. Signing
  6. 5. Generating bindings with abigen!
    1. 5.1. The JSON ABI file
    2. 5.2. The abigen! macro
  7. 6. Deploying contracts
    1. 6.1. Configurable constants
    2. 6.2. Interacting with contracts
    3. 6.3. The FuelVM Binary file
  8. 7. Calling contracts
    1. 7.1. Connecting wallets
    2. 7.2. Transaction parameters
    3. 7.3. Call parameters
    4. 7.4. Custom asset transfer
    5. 7.5. Call response
    6. 7.6. Logs
    7. 7.7. Variable outputs and messages
    8. 7.8. Read-only calls
    9. 7.9. Calling other contracts
    10. 7.10. Multiple contract calls
    11. 7.11. Transaction dependency estimation
    12. 7.12. Estimating cost
  9. 8. Running scripts
  10. 9. Predicates
    1. 9.1. Signatures example
  11. 10. Types
    1. 10.1. Bytes32
    2. 10.2. Address
    3. 10.3. ContractId
    4. 10.4. AssetId
    5. 10.5. Converting native types
    6. 10.6. Bech32
    7. 10.7. Structs and enums
    8. 10.8. String
    9. 10.9. Bits256
    10. 10.10. B512
    11. 10.11. EvmAddress
    12. 10.12. Vectors
  12. 11. API Reference
  13. 12. Testing
    1. 12.1. Testing basics
    2. 12.2. The setup_contract_test! macro
    3. 12.3. Tweaking the blockchain
  14. 13. Cookbook
    1. 13.1. Custom consensus parameters
    2. 13.2. Deposit and Withdraw
    3. 13.3. Transfer all assets
  15. 14. Debugging
    1. 14.1. The Function selector
  16. 15. Contributing
    1. 15.1. Integration tests structure
  17. 16. Command Line Interfaces
    1. 16.1. fuels-abi-cli

The Fuel Rust SDK

fuels-rs Testing

note This section is still a work in progress.

  • Testing Basics
  • setup_contract_test! Macro
  • Tweaking the Blockchain