[AWS] 민팅된 NFT에 metadata Properties 추가 & 변경 하기
메타데이터 스키마 / OpenSea testnet / metadata json / 오픈씨 테스트넷
[AWS] 민팅된 NFT에 metadata Properties 추가하기
IPFS ↔ AWS S3 버킷에 저장된 metadata 차이
민팅된 NFT에 특성, 레벨 등을 변경해서
그 가치를 올려줘야 할 경우 🔺
Properties
를 추가 / 변경 / 삭제 해줘야 한다
-
분산저장소 ‘IPFS’ 에 저장된 metadata 는 수정이 불가능한데
-
‘AWS S3 버킷’ 에 저장된 metadata 는 수정이 가능하다
1. AWS S3 버킷에 업로드된 metadata Json 파일
{
"image": "https://nftss.s3.ap-northeast-2.amazonaws.com/images/camping.jpg",
"description": "We bought a camper van so we could go away whenever the ancy took us As contactless travel is preferred campers are selling well He lived in a camper for 6months",
"name": "Caravan Camping#1"
}
name 👉
NFT 표시되는 이름
description 👉NFT 설명 글
image 👉AWS S3 에 업로드된 이미지 객체 URL 링크
2. OpenSea testnet 에 올라간 NFT 확인
👆 오픈씨 테스트넷에서 배포된 NFT를 확인
설정한metadata json
내용이 제대로 보여진다
https://wavescats.github.io/aws/2022/10/15/aws3.html
(👆 AWS S3 버킷을 이용한 NFT 민팅하기 참고)
3. metadata에 Properties 추가
민팅된 NFT에 ‘색상’ 과 ‘크기’ 에 대한
Properties
를 추가해보겠습니다
- Color 👉 Violet
- Size 👉 Van
{
"image": "https://nftsscamp.s3.ap-northeast-2.amazonaws.com/images/camping.jpg",
"description": "We bought a camper van so we could go away whenever the ancy took us As contactless travel is preferred campers are selling well He lived in a camper for 6months",
"name": "Caravan Camping#1",
"attributes": [
{
"trait_type": "Color",
"value": "Violet"
},
{
"trait_type": "Size",
"value": "Van"
}
]
}
metadata에 Properties 추가할때
‘ERC721 메타데이터 JSON 스키마’ 표준에 맞춰서 작성해야 한다
https://docs.opensea.io/docs/metadata-standards
(👆 erc721 metadata schema 표준)
4. AWS S3 버킷에 수정된 Json파일 업로드
AWS S3 버킷에 수정되기전 json 파일은 삭제하고
Properties를 추가한 Json파일을 다시 업로드 시켜줍니다
⭐ 여기서 중요한점은 Json파일을 수정해서 다시 업로드해도
NFT를 민팅할때 사용되었던 객체 URL 링크가 바뀌지 않습니다
5. OpenSea testnet 에서 수정된 NFT 확인
Color
,Size
Properties 가 추가된 NFT를 확인할 수 있습니다
❗ 만약에 수정된 metadata 가 아무리 기다려도 반영이 안된다면
우측 상단에Refresh metadata
🔄 버튼을 누르면 반영됩니다!