PIL 등록하기

0) Prerequisites

  • 만약 동일 파라미터의 라이선스 약관이 이미 존재한다면 새로 만들어 지지 않고, 기존의 licenseTermsId 와 undefined txHash 로 반환된다. 기존 라이선스 약관은 그 licenseTermsId 를 사용하면 된다.

화이트리스트 Revenue Token

현재 로열티 모듈에서 currency 필드로 사용되기 위해서는 토큰이 whitelisted 되어야 한다. 지금 화이트리스트 Revenue Token은 여기서 확인할 수 있으며, 상업적 섹션에서 직접 민팅할 수도 있다.

1) 상업적 용도 라이선스 만들기

const commercialUseParams = {
  currency: '0xB132A6B7AE652c974EE1557A3521D53d18F6739f', // see the above note on whitelisted revenue tokens
  defaultMintingFee: '10' // 10 of the currency (using the above currency, 10 MERC20)
}

const response = await client.license.registerCommercialUsePIL({
  ...commercialUseParams,
  txOptions: { waitForTransaction: true }
});

console.log(`PIL Terms registered at transaction hash ${response.txHash}, License Terms ID: ${response.licenseTermsId}`) 

2) 상업적 리믹스 라이선스 만들기

3) 비상업적 소셜 리믹스 라이선스 만들기

Reference

Last updated