[][src]Function casper_client::put_deploy

pub fn put_deploy(
    maybe_rpc_id: &str,
    node_address: &str,
    verbose: bool,
    deploy: DeployStrParams<'_>,
    session: SessionStrParams<'_>,
    payment: PaymentStrParams<'_>
) -> Result<JsonRpc, Error>

Creates a Deploy and sends it to the network for execution.

  • 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".
  • When verbose is true, the JSON-RPC request will be printed to stdout.
  • 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.