set_metadata: TxDescriptor<{
    index: number;
    maybe_hash: FixedSizeBinary<32> | undefined;
}>

Set or clear metadata of a referendum.

Parameters:

  • origin: Must be Signed by a creator of a referendum or by anyone to clear a metadata of a finished referendum.
  • index: The index of a referendum to set or clear metadata for.
  • maybe_hash: The hash of an on-chain stored preimage. None to clear a metadata.