Step 1: Get the function data
As an example, let’s try to call the mintAndRegisterIpAndAttachPilTerms in our periphery contract. This function mints & registers a new IP and attaches PIL Terms to it. As shown in Deployed Smart Contracts,LicenseAttachmentWorkflows
is deployed at 0xcC2E862bCee5B6036Db0de6E06Ae87e524a79fd8
on Aeneid (at the time of writing this tutorial).
There’s a few things we’ll need:
- Contract ABI - you can get this by going to our block explorer and looking up the contract. This is a proxy contract, so go to Contract > Read/Write proxy > Click on the implementation address > Contract > ABI. After all that, you should end up here.
- Function Args - you can get these just by looking at the code.
Step 2: Send the transaction
At this point, we have thedata
and to
needed for sending this transaction, for example if we were using Crossmint.
However we could also then send this transaction ourselves: