Skip to contents

Sends a transaction with inline metadata from a specified sender address. Combines the capabilities of mc_send_from and mc_send_with_data.

Usage

mc_send_with_data_from(conn, from_address, to_address, amounts, data)

Arguments

conn

A connection object created by mc_connect.

from_address

Character string. Sender address.

to_address

Character string. Recipient address.

amounts

Either a numeric value (native) or a named list of assets.

data

Data to embed. Can be a string, list (converted to JSON), etc.

Value

A character string containing the transaction ID.

Examples

if (FALSE) { # \dontrun{
# Send from a specific address with metadata
txid <- mc_send_with_data_from(conn, "1A...", "1B...", 0.5,
                               list(reference = "invoice123"))
} # }