[][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 an i64 it will be used as a JSON integer. If empty, a random i64 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 to stdout. If the file already exists, it will be overwritten.
  • deploy contains deploy-related options for this Deploy. See DeployStrParams for more details.
  • session contains session-related options for this Deploy. See SessionStrParams for more details.
  • payment contains payment-related options for this Deploy. See PaymentStrParams for more details.