[−][src]Function casper_client::make_deploy
pub fn make_deploy(
maybe_output_path: &str,
deploy: DeployStrParams<'_>,
session: SessionStrParams<'_>,
payment: PaymentStrParams<'_>
) -> Result<(), Error>
Creates a Deploy
and outputs it to a file or stdout.
As a file, the Deploy
can subsequently be signed by other parties using
sign_deploy_file()
and then sent to the network for execution
using send_deploy_file()
.
maybe_rpc_id
is the JSON-RPC identifier, applied to the request and returned in the response. If it can be parsed as ani64
it will be used as a JSON integer. If empty, a randomi64
will be assigned. Otherwise the provided string will be used verbatim.node_address
is the hostname or IP and port of the node on which the HTTP service is running, e.g."http://127.0.0.1:7777"
.maybe_output_path
specifies the output file, or if empty, will print it tostdout
. If the file already exists, it will be overwritten.deploy
contains deploy-related options for thisDeploy
. SeeDeployStrParams
for more details.session
contains session-related options for thisDeploy
. SeeSessionStrParams
for more details.payment
contains payment-related options for thisDeploy
. SeePaymentStrParams
for more details.