Skip to contents

Issues tokens (non‑fungible) and specifies the sending address.

Usage

mc_issue_token_from(
  conn,
  from_address,
  to_address,
  asset,
  token,
  quantity,
  native_amount = NULL,
  token_details = NULL
)

Arguments

conn

A connection object created by mc_connect.

from_address

Character string. Address that pays for and issues the token.

to_address

Character string. Recipient address.

asset

Character string. Parent asset name, reference, or issuance ID.

token

Character string. Token name (must be unique within the asset).

quantity

Numeric. Number of token units to issue (usually 1).

native_amount

Numeric (optional). Amount of native currency to send.

token_details

List (optional). Custom details for the token (e.g., list(description = "My NFT")).

Value

A character string containing the transaction ID.

Examples

if (FALSE) { # \dontrun{
# Issue token from a specific address
txid <- mc_issue_token_from(conn, "1A...", "1B...", "art", "painting2",
                            quantity = 1, token_details = list(artist = "Picasso"))
} # }