TypeScript에서 NFT를 IP 자산으로 등록하는 방법을 알아보세요.
.env
file:pinata-web3
dependency:uploadToIpfs
파일에서 IP 및 NFT 메타데이터 객체를 IPFS에 업로드하는 함수를 만드세요:
mintAndRegisterIp
함수를 사용하여 NFT를 발행하고 동일한 트랜잭션에서 IP 자산으로 등록할 수 있습니다.
이 함수는 발행할 SPG NFT 계약이 필요합니다.
0xc32A8a0FF3beDDDa58393d022aF433e78739FAbc
. 메인넷에서, 또는 Aeneid에서 실제 시나리오를 테스트할 때도 자체 계약을 생성해야 합니다. 이는 아래 “사용자 정의 ERC-721 계약 사용” 섹션에서 설명합니다.
사용자 정의 ERC-721 계약 사용
mintAndRegisterIp
function, you can register IP + create terms + attach terms all in the same step with the following functions: