PIL 등록하기
0) Prerequisites
만약 동일 파라미터의 라이선스 약관이 이미 존재한다면 새로 만들어 지지 않고, 기존의
licenseTermsId와 undefinedtxHash로 반환된다. 기존 라이선스 약관은 그licenseTermsId를 사용하면 된다.
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