Skip to contents

Returns a list of all issuance transactions (initial and subsequent) for a given asset.

Usage

mc_list_asset_issues(conn, asset, verbose = FALSE, count = NULL, start = NULL)

Arguments

conn

A connection object created by mc_connect.

asset

Character string. Asset name, reference, or issuance ID.

verbose

Logical. If TRUE, includes details about issuers and custom fields. Default is FALSE.

count

Integer (optional). Maximum number of issuances to return.

start

Integer (optional). Offset (positive for forward, negative for backward from the most recent). Use a negative value to get the most recent issuances first.

Value

A data frame (converted via rpc_res_to_df) with one row per issuance. Columns typically include txid, issuer, quantity, units, etc.

Examples

if (FALSE) { # \dontrun{
# Get all issuances of "mycoin"
issues <- mc_list_asset_issues(conn, "mycoin")

# Get the most recent 5 issuances with details
recent <- mc_list_asset_issues(conn, "mycoin", verbose = TRUE,
                               count = 5, start = -5)
} # }