Prerequisites
There are a few steps you have to complete before you can start the tutorial.- Complete the TypeScript SDK Setup
1. Before We Start
Registering a derivative IP Asset requires you have a License Token from the parent IP Assets you plan to be a derivative of. If you don’t, the SDK will handle it for you.1a. Why would I ever use a License Token if it’s not needed?
There are a few times when you would need a License Token to register a derivative:- The License Token contains private license terms, so you would only be able to register as a derivative if you had the License Token that was manually minted by the owner. More on that here.
- The License Token (which is an NFT) costs a
mintingFee
to mint, and you were able to buy it on a marketplace for a cheaper price. Then it makes more sense to simply register with the License Token then have to pay the more expensivedefaultMintingFee
.
2. Register Derivative
In this example we’re going to assume you have no license tokens, the child IP is not yet registered, and you don’t have your own NFT contract or an already minted NFT.Associated Docs:
ipAsset.registerDerivativeIpAsset
main.ts