Icon HelpCircleForumIcon Link

⌘K

Icon HelpCircleForumIcon Link
Forc Submit

Icon Linkforc-client

A forc plugin for interacting with a Fuel node.

Icon LinkUSAGE:

forc-submit [OPTIONS] <TX_PATH>

Icon LinkARGS:

<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 thefuel_tx::Transaction::try_from_bytes constructor.

Icon LinkOPTIONS:

--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]

-h, --help

Print help information

--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 or --testnet 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 or --testnet to specify the Fuel node.

Possible values are: [beta-1, beta-2, beta-3, beta-4, local]

--testnet

Use preset configuration for the latest testnet.

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

--tx-status-json <json>

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

[default: false]

-V, --version

Print version information

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