Skip to contents

Similar to mc_publish, but specifies the publishing address.

Usage

mc_publish_from(conn, from_address, stream, keys, data, options = NULL)

Arguments

conn

A connection object created by mc_connect.

from_address

Character string. Address that will publish the item.

stream

Character string. Stream name, reference, or txid.

keys

A single key or vector of keys.

data

Data to publish (string or list).

options

Optional "offchain" string.

Value

A character string containing the transaction ID.

Examples

if (FALSE) { # \dontrun{
mc_publish_from(conn, "1A...", "mystream", "key", list(text = "data"))
} # }