Icon HelpCircleForumIcon Link

⌘K

Icon HelpCircleForumIcon Link
Forc Submit

Icon LinkA

Usage: forc-submit [OPTIONS] <TX_PATH>

Arguments:

<TX_PATH> Path to the Transaction that is to be submitted to the Fuel node.

Paths to files ending with .json will be deserialized from JSON. Paths to files ending with .bin will be deserialized from bytes using the fuel_tx::Transaction::try_from_bytes constructor.

Options:

--node-url <NODE_URL>

The URL of the Fuel node to which we're submitting the transaction. If unspecified, checks the manifest's network table, then falls back to http://127.0.0.1:4000

You can also use --target, --testnet, or --mainnet to specify the Fuel node.

[env: FUEL_NODE_URL=]

--target <TARGET>

Use preset configurations for deploying to a specific target.

You can also use --node-url, --testnet, or --mainnet to specify the Fuel node.

Possible values are: [local, testnet, mainnet]

--testnet

Use preset configuration for testnet.

You can also use --node-url, --target, or --mainnet to specify the Fuel node.

--mainnet

Use preset configuration for mainnet.

You can also use --node-url, --target, or --testnet to specify the Fuel node.

--await <AWAIT>

Whether or not to await confirmation that the transaction has been committed.

When true, await commitment and output the transaction status. When false, do not await confirmation and simply output the transaction ID.

[default: true] [possible values: true, false]

--tx-status-json <JSON>

Output the resulting transaction status as JSON rather than the default output

[default: false] [possible values: true, false]

-h, --help

Print help (see a summary with '-h')

-V, --version

Print version

EXAMPLES:

Icon LinkSubmit a transaction from a json file

forc submit {path}/mint.json

Icon LinkSubmit a transaction from a json file and wait for confirmation

forc submit {path}/mint.json --await true

Icon LinkSubmit a transaction from a json file and get output in json

forc submit {path}/mint.json --tx-status-json true

Icon LinkSubmit a transaction from a json file to testnet

forc submit {path}/mint.json --testnet

Icon LinkSubmit a transaction from a json file to a local net

forc submit {path}/mint.json --target local