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
  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. 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
    13. 7.13. Low-level calls
  9. 8. Running scripts
  10. 9. Predicates
    1. 9.1. Signatures example
  11. 10. Custom transactions
    1. 10.1. Transaction builders
    2. 10.2. Custom contract and script calls
  12. 11. Types
    1. 11.1. Bytes32
    2. 11.2. Address
    3. 11.3. ContractId
    4. 11.4. AssetId
    5. 11.5. Converting native types
    6. 11.6. Bech32
    7. 11.7. Structs and enums
    8. 11.8. String
    9. 11.9. Bits256
    10. 11.10. Bytes
    11. 11.11. B512
    12. 11.12. EvmAddress
    13. 11.13. Vectors
  13. 12. Codec
    1. 12.1. Encoding
    2. 12.2. Decoding
  14. 13. API Reference
  15. 14. Testing
    1. 14.1. Testing basics
    2. 14.2. The setup_program_test! macro
    3. 14.3. Tweaking the blockchain
  16. 15. Cookbook
    1. 15.1. Custom consensus parameters
    2. 15.2. Deposit and Withdraw
    3. 15.3. Transfer all assets
  17. 16. Debugging
    1. 16.1. The Function selector
  18. 17. Glossary
  19. 18. Contributing
    1. 18.1. Integration tests structure
  20. 19. Command Line Interfaces
    1. 19.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