Skip to contents

Updates a variable's value, specifying the address that pays for the transaction.

Usage

mc_set_variable_value_from(conn, from_address, variable, value = NULL)

Arguments

conn

A connection object created by mc_connect.

from_address

Character string. Address that pays for the update.

variable

Character string. Variable name or transaction ID.

value

Optional. New value (any JSON structure). If NULL, the variable is deleted.

Value

A list containing the result of the RPC call (usually transaction ID).

Examples

if (FALSE) { # \dontrun{
mc_set_variable_value_from(conn, "1A...", "myvar", value = 100)
} # }