Skip to contents

Creates one or more tokens (non‑fungible items) under a parent asset. The parent asset must be non‑fungible (e.g., issued with type = "nonfungible").

Usage

mc_issue_token(
  conn,
  address,
  asset,
  token,
  quantity,
  native_amount = NULL,
  token_details = NULL
)

Arguments

conn

A connection object created by mc_connect.

address

Character string. Address that will receive the tokens.

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 a token "painting1" under asset "art"
txid <- mc_issue_token(conn, "1A...", "art", "painting1", quantity = 1,
                       token_details = list(artist = "Monet", year = 2025))
} # }