Skip to contents

Retrieves details about an asset on the MultiChain blockchain. The asset can be identified by its name, reference, or issuance transaction ID.

Usage

mc_get_asset_info(conn, asset, verbose = FALSE)

Arguments

conn

A connection object created by mc_connect.

asset

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

verbose

Logical. If TRUE, returns details about individual issuances (for fungible assets with multiple issuances). Default is FALSE.

Value

A list (or data frame, depending on verbosity) containing asset information such as name, type, total quantity, units, etc.

Examples

if (FALSE) { # \dontrun{
# Get basic info about an asset named "mycoin"
info <- mc_get_asset_info(conn, "mycoin")
print(info$name)

# Get verbose info with issuance details
info_verbose <- mc_get_asset_info(conn, "mycoin", verbose = TRUE)
} # }