Skip to main content

Solidity API

Contract: CulturaDigitalAsset

safeMint

function safeMintfunction safeMint(address to, string digitalAssetName, string digitalAssetDescription, struct ILicensed_ERC.ParentDigitalAsset[] parentDigitalAsset, string termsURI, string culturaDigitalAssetTokenURI) external returns (uint256)
Mints a new rights token with specified metadata

Parameters

NameDescription
toAddress that will receive the minted token
digitalAssetNameName of the digital digitalAsset
digitalAssetDescriptionDescription of the digital digitalAsset
parentDigitalAssetArray of parent digitalAsset information for derivative works
termsURIURI pointing to the detailed terms of the digitalAsset
culturaDigitalAssetTokenURIURI pointing to the tokenURI of the digitalAsset, this is the standard tokenURI on ERC721

Return Values

Description
uint256 The ID of the newly minted token

Public Functions

constructor

function constructorconstructor(address defaultAdmin, address minter, address culturaTreasuryAddress, uint256 culturaTreasurySplit) public

tokenURI

function tokenURIfunction tokenURI(uint256 tokenId) public view returns (string)

supportsInterface

function supportsInterfacefunction supportsInterface(bytes4 interfaceId) public view returns (bool)
Checks if contract supports an interface

Parameters

NameDescription
interfaceIdThe interface identifier, as specified in ERC-165

Return Values

Description
bool True if the contract supports interfaceId
Dev: See