A forc
plugin for interacting with a Fuel node.
forc-submit [OPTIONS] <TX_PATH>
<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.
--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: #Submit a transaction from a json file forc submit ./mint.json
#Submit a transaction from a json file and wait for confirmation forc submit ./mint.json --await true
#Submit a transaction from a json file and get output in json forc submit ./mint.json --tx-status-json true
#Submit a transaction from a json file to testnet forc submit ./mint.json --testnet
#Submit a transaction from a json file to a local net forc submit ./mint.json --target local