1. The Fuel Rust SDK
  2. 1. Getting Started
  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. RocksDB
    4. 2.4. Querying the blockchain
    5. 2.5. Retrying upon errors
  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. Storage slots
    3. 6.3. Interacting with contracts
    4. 6.4. The FuelVM Binary file
    5. 6.5. Large contracts
  8. 7. Calling contracts
    1. 7.1. Connecting wallets
    2. 7.2. Transaction policies
    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. Simulating calls
    9. 7.9. Calling other contracts
    10. 7.10. Multiple contract calls
    11. 7.11. Transaction dependency estimation
    12. 7.12. Estimating cost
    13. 7.13. Low-level calls
  9. 8. Running scripts
  10. 9. Predicates
    1. 9.1. Signatures example
  11. 10. Pre-uploading code
  12. 11. Custom transactions
    1. 11.1. Transaction builders
    2. 11.2. Custom contract and script calls
  13. 12. Types
    1. 12.1. Bytes32
    2. 12.2. Address
    3. 12.3. ContractId
    4. 12.4. AssetId
    5. 12.5. Bech32
    6. 12.6. Structs and enums
    7. 12.7. String
    8. 12.8. Bits256
    9. 12.9. Bytes
    10. 12.10. B512
    11. 12.11. EvmAddress
    12. 12.12. Vectors
    13. 12.13. Converting types
  14. 13. Codec
    1. 13.1. Encoding
    2. 13.2. Decoding
  15. 14. API Reference
  16. 15. Testing
    1. 15.1. Testing basics
    2. 15.2. The setup_program_test! macro
    3. 15.3. Tweaking the blockchain
  17. 16. Cookbook
    1. 16.1. Custom consensus parameters
    2. 16.2. Deposit and Withdraw
    3. 16.3. Transfer all assets
  18. 17. Debugging
    1. 17.1. The Function selector
  19. 18. Glossary
  20. 19. Contributing
    1. 19.1. Integration tests structure
  21. 20. Command Line Interfaces
    1. 20.1. fuels-abi-cli

The Fuel Rust SDK

fuels-rs Testing

note This section is still a work in progress.

  • Testing Basics
  • setup_program_test! Macro
  • Tweaking the Blockchain