Creates a global variable on the blockchain. Variables are key‑value stores that can be read by filters and transactions.
Arguments
- conn
A connection object created by
mc_connect.- name
Character string. Variable name (must be unique).
- open
Logical. If
TRUE, anyone withcreatepermissions can edit the variable. IfFALSE, only admins can edit.- value
Optional. Initial JSON value (list, number, string, etc.).
Examples
if (FALSE) { # \dontrun{
mc_create_variable(conn, "myvar", open = TRUE, value = list(key = "value"))
} # }