1. The Fuel Rust SDK
  2. 1. Getting Started
    1. 1.1. Setup and Run
    2. 1.2. Terminology
    3. 1.3. Connecting to a Fuel node
      1. 1.3.1. Connecting to the Testnet or an external node
      2. 1.3.2. Running a short-lived Fuel node with the SDK
      3. 1.3.3. Querying the blockchain
    4. 1.4. Managing wallets
      1. 1.4.1. Creating a wallet from a private key
      2. 1.4.2. Creating a wallet from mnemonic phrases
      3. 1.4.3. Wallet Access
      4. 1.4.4. Encrypting and storing wallets
      5. 1.4.5. Checking balances and coins
      6. 1.4.6. Setting up test wallets
      7. 1.4.7. Signing
      8. 1.4.8. Transferring assets
    5. 1.5. Deploying contracts
      1. 1.5.1. Interacting with contracts
      2. 1.5.2. The FuelVM Binary file
      3. 1.5.3. The JSON ABI file
      4. 1.5.4. The abigen! macro
      5. 1.5.5. The setup_contract_test! macro
    6. 1.6. Calling contracts
      1. 1.6.1. Connecting wallets
      2. 1.6.2. Transaction parameters
      3. 1.6.3. Call parameters
      4. 1.6.4. Call response
      5. 1.6.5. Logs
      6. 1.6.6. Variable outputs
      7. 1.6.7. Read-only calls
      8. 1.6.8. Calling other contracts
      9. 1.6.9. Multiple contract calls
      10. 1.6.10. Estimating cost
    7. 1.7. Running scripts
    8. 1.8. Predicates
      1. 1.8.1. Send and spend funds
      2. 1.8.2. Predicate data
    9. 1.9. Scripts
      1. 1.9.1. Running scripts
    10. 1.10. Types
      1. 1.10.1. Bytes32
      2. 1.10.2. Address
      3. 1.10.3. ContractId
      4. 1.10.4. AssetId
      5. 1.10.5. Converting native types
      6. 1.10.6. Bech32
      7. 1.10.7. Structs and enums
      8. 1.10.8. String
      9. 1.10.9. Bits256
      10. 1.10.10. B512
      11. 1.10.11. EvmAddress
      12. 1.10.12. Vectors
  3. 2. API
  4. 3. Debugging
    1. 3.1. Debugging abigen errors
    2. 3.2. Debugging contract call errors
    3. 3.3. Debugging network errors
    4. 3.4. The Function selector
  5. 4. Testing
    1. 4.1. Tweaking the blockchain
  6. 5. Cookbook
    1. 5.1. Custom consensus parameters
    2. 5.2. Deposit and Withdraw
    3. 5.3. Transfer all assets
  7. 6. Contributing
    1. 6.1. Integration tests structure
  8. 7. Command Line Interfaces
    1. 7.1. fuels-abi-cli

The Fuel Rust SDK

Debugging abigen errors