set_weights_payload

Function set_weights_payload 

Source
pub fn set_weights_payload(
    netuid: u16,
    weights: Vec<NormalizedWeight>,
    version_key: u64,
) -> impl Payload
Expand description

Create a set_weights payload for submission to the chain

§Arguments

  • netuid - The subnet UID
  • weights - Vector of normalized weights
  • version_key - Version key for the weights

§Returns

A payload that can be submitted to the chain