Run script project. Crafts a script transaction then sends it to a running node
forc run [OPTIONS] [NODE_URL]
<NODE_URL> URL of the Fuel Client Node
Set the transaction byte price. Defaults to 0
32-byte contract ID that will be called during the transaction
Hex string of data to input to script
Only craft transaction and print it out
If set, outputs source file mapping in JSON format
Set the transaction gas limit. Defaults to the maximum gas limit
Set the transaction gas price. Defaults to 0
Print help information
Kill Fuel Node Client after running the code. This is only available if the node is
Requires that the Forc.lock file is up-to-date. If the lock file is missing, or it needs to be updated, Forc will exit with an error
By default the JSON for ABIs is formatted for human readability. By using this option JSON output will be "minified", i.e. all on one line without whitespace
By default the JSON for initial storage slots is formatted for human readability. By using this option JSON output will be "minified", i.e. all on one line without whitespace
If set, outputs a binary file representing the script bytes
The directory in which the sway compiler output artifacts are placed.
By default, this is
Path to the project, if not specified, current working directory will be used
Print the finalized ASM.
This is the state of the ASM with registers allocated and optimisations applied.
Print the generated ASM.
This is the state of the ASM prior to performing register allocation and other ASM optimisations.
Print the generated Sway IR (Intermediate Representation)
Pretty-print the outputs from the node
Silent mode. Don't output any warnings or errors to the command line
Execute the transaction and return the final mutated transaction along with receipts (which includes whether the transaction reverted or not). The transaction is not inserted in the node's view of the blockchain, (i.e. it does not affect the chain state)
Output the time elapsed over each part of the compilation process