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")).
See also
mc_get_token_info to query token details,
mc_issue_token_from for using a specific sender address.
Other assets:
mc_get_asset_info(),
mc_get_token_info(),
mc_issue(),
mc_issue_from(),
mc_issue_more(),
mc_issue_more_from(),
mc_issue_token_from(),
mc_list_asset_issues(),
mc_list_assets(),
mc_update(),
mc_update_from()
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))
} # }