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.
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.
See also
mc_update_from to update from a specific address.
Other assets:
mc_get_asset_info(),
mc_get_token_info(),
mc_issue(),
mc_issue_from(),
mc_issue_more(),
mc_issue_more_from(),
mc_issue_token(),
mc_issue_token_from(),
mc_list_asset_issues(),
mc_list_assets(),
mc_update_from()
Examples
if (FALSE) { # \dontrun{
# Close the asset "mycoin" to prevent further issuances
txid <- mc_update(conn, "mycoin", list(open = FALSE))
} # }