Icon HelpCircleForumIcon Link

⌘K

Icon HelpCircleForumIcon Link

Icon LinkPrerequisites

Icon LinkInstallation

To install the Fuel toolchain, you can use the fuelup-init script. This will install forc, forc-client, forc-fmt, forc-lsp, forc-wallet as well as fuel-core in ~/.fuelup/bin.

curl https://install.fuel.network | sh
Icon InfoCircle

Having problems? Visit the installation guide or post your question in our forum Icon Link.

If you're using VSCode, we recommend installing the Sway extension Icon Link.

Icon LinkAlready have fuelup installed?

If you already have fuelup installed, run the commands below to make sure you are on the most up-to-date toolchain.

fuelup self update
fuelup update
fuelup default latest

Icon LinkProject Setup

Start with a new empty folder and name it multisig-predicate.

mkdir multisig-predicate

Go into the multisig-predicate folder:

cd multisig-predicate

Within your terminal start by creating a new sway project called predicate:

forc new --predicate predicate
Icon InfoCircle

Tip: Notice the --predicate flag, which tells forc that you want to create a project based on a predicate, rather than the default contract program type.

Your project structure generated from the forc command should like this:

tree predicate
predicate
├── Forc.toml
└── src
    └── main.sw

1 directory, 2 files

Move into your predicate folder:

cd predicate

In VSCode, navigate to the src folder within the predicate folder, where you will find a file named main.sw. This is the file where your Sway predicate will be written.