IPAsset allows you to create, get, and list IP Assets within Story.
Function | Mint an NFT | Register IPA | Create License Terms | Attach License Terms | Mint License Token | Register as Derivative |
---|---|---|---|---|---|---|
register | ✓ | |||||
mint_and_register_ip_asset_with_pil_terms | ✓ | ✓ | ✓ | ✓ | ||
register_derivative | ✓ | |||||
register_derivative_with_license_tokens | ✓ | |||||
register_pil_terms | ✓ | |||||
attach_license_terms | ✓ | |||||
mint_license_tokens | ✓ |
ipId
.
tokenUri
to
whatever is passed under ipMetadata.nftMetadataURI
.Method |
---|
register |
nft_contract
: The address of the NFT.token_id
: The token identifier of the NFT.ip_metadata
: [Optional] The desired metadata for the newly minted NFT and newly registered IP.
ip_metadata['ip_metadata_uri']
: [Optional] The URI of the metadata for the IP.ip_metadata['ip_metadata_hash']
: [Optional] The hash of the metadata for the IP.ip_metadata['nft_metadata_uri']
: [Optional] The URI of the metadata for the NFT.ip_metadata['nft_metadata_hash']
: [Optional] The hash of the metadata for the IP NFT.deadline
: [Optional] The deadline for the signature in milliseconds.tx_options
: [Optional] Transaction options dictionary.Method |
---|
register_derivative |
child_ip_id
: The derivative IP ID.parent_ip_ids
: The parent IP IDs.license_terms_ids
: The IDs of the license terms that the parent IP supports.max_minting_fee
: [Optional] The maximum minting fee that the caller is willing to pay. If set to 0, then there is no limit. Default: 0max_revenue_share
: [Optional] The maximum revenue share percentage agreed upon between a child and parent when a child is registering as derivative. Must be between 0 and 100. Default: 100max_rts
: [Optional] The maximum number of royalty tokens that can be distributed to the external royalty policies. Must be between 0 and 100,000,000. Default: 100_000_000tx_options
: [Optional] Transaction options dictionary.Method |
---|
register_derivative_with_license_tokens |
child_ip_id
: The derivative IP ID.license_token_ids
: The IDs of the license tokens.max_rts
: The maximum number of royalty tokens that can be distributed to the external royalty policies. Must be between 0 and 100,000,000. Recommended for simplicity: 100_000_000tx_options
: [Optional] Transaction options dictionary.tokenUri
to
whatever is passed under ipMetadata.nftMetadataURI
.Method |
---|
mint_and_register_ip_asset_with_pil_terms |
spg_nft_contract
: The address of the NFT collection.terms
: The array of license terms to be attached. ⚠️ This function will fail if you pass in an empty array.
terms[].terms
: The license terms data. See the Python example below for the structure.terms[].licensing_config
: [Optional] The licensing configuration. See the Python example below for the structure.allow_duplicates
: [Optional] Set to true to allow minting IPs with the same NFT metadata. Default: Trueip_metadata
: [Optional] The desired metadata for the newly minted NFT and newly registered IP.
ip_metadata['ip_metadata_uri']
: [Optional] The URI of the metadata for the IP.ip_metadata['ip_metadata_hash']
: [Optional] The hash of the metadata for the IP.ip_metadata['nft_metadata_uri']
: [Optional] The URI of the metadata for the NFT.ip_metadata['nft_metadata_hash']
: [Optional] The hash of the metadata for the IP NFT.recipient
: [Optional] The address of the recipient of the minted NFT.tx_options
: [Optional] Transaction options dictionary.