[][src]Function iota_client::attach_to_tangle_local

pub fn attach_to_tangle_local<T: Copy + Into<Option<usize>>>(
    threads: T,
    trunk_transaction: String,
    branch_transaction: String,
    min_weight_magnitude: usize,
    trytes: Vec<String>
) -> Result<AttachToTangleResponse, Error>

Performs proof of work locally

  • threads - Optionally specify the number of threads to use for Pow. Defaults to CPU thread count.
  • trunk_transaction - trunk transaction to confirm
  • branch_transaction - branch transaction to confirm
  • min_weight_magnitude - Difficulty of PoW
  • trytes - tryes to use for PoW