A
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
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.
--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:
Submit a transaction from a json file
forc submit {path}/mint.json
Submit a transaction from a json file and wait for confirmation
forc submit {path}/mint.json --await true
Submit a transaction from a json file and get output in json
forc submit {path}/mint.json --tx-status-json true
Submit a transaction from a json file to testnet
forc submit {path}/mint.json --testnet
Submit a transaction from a json file to a local net
forc submit {path}/mint.json --target local