The CLI command, upsert-data-registry, is utilized to create a proposal for adding or updating a key in the Data Registry. The command accepts the following arguments and flags:
Args
$KEY: The key intended to be upserted in the Data Registry.
$CHECKSUM: The checksum corresponding to the data associated with the key.
$VALUE: The value tied to the key.
$FILETYPE: Specifies the type of the file or data that's related to the key.
$SIZE: The size of the file or data linked to the key.
Flags
$TITLE: The title of the proposal. Typically in the form "Upserting Data Registry key '$KEY'".
$DESCRIPTION: The description of the proposal, often described as "Assign value '$VALUE' to key '$KEY'".
Bash
Copy
sekaid tx customgov proposal upsert-data-registry \
--from=$SIGNER $FLAGS_TX \
--title=$TITLE --description=$DESCRIPTION \
"$KEY" "$CHECKSUM" "$VALUE" "$FILETYPE" "$SIZE"