Skip to contents

Changes the status of an asset (e.g., to open or close further issuances). The asset must have been created with the ability to be updated.

Usage

mc_update(conn, asset, params)

Arguments

conn

A connection object created by mc_connect.

asset

Character string. Asset name, reference, or issuance ID.

params

A list of parameters to update, typically list(open = FALSE) to close further issuances.

Value

A character string containing the transaction ID.

Examples

if (FALSE) { # \dontrun{
# Close the asset "mycoin" to prevent further issuances
txid <- mc_update(conn, "mycoin", list(open = FALSE))
} # }