# ERC721 토큰 컨트랙트 배포하기

### 시작하기 전에

시작하기 전에 다음을 확인하세요:

* [*InfraEVM* 파라체인](/infrablockchain-docs/ko/infrablockchain/service-chains/infra-evm-parachain.md)
* [EVM으로 자산 이동하기](/infrablockchain-docs/ko/infrablockchain/tutorials/service-chains/infra-evm-parachain/deposit-and-withdraw-token.md)

### Remix를 사용하여 ERC721 토큰 컨트랙트 배포하기

1. [Remix](https://remix.ethereum.org)에 접속합니다.

   ![remix-main](/files/ThOhxLCAgM06uPQGOyzh)
2. ERC721 토큰 컨트랙트 템플릿을 선택하여 workspace를 생성합니다.

   ![erc721-create-workspace](/files/fhgoCU5jcDveLU6uXrTk)
3. 생성한 workspace를 확인합니다.

   ![erc721-check-code](/files/JMwZ8wSoC6l7K1k6yOez)
4. 생성된 코드를 컴파일 합니다.

   ![erc721-compile](/files/2nkAvdTa7CffMPAtDxGx)
5. 배포할 네트워크를 `Injected Provider - MetaMask`로 선택해 준 뒤 MetaMask와 Remix를 연결합니다.

   ![erc721-change-network](/files/KpnILFIWU9JLdsFop25J)
6. 배포하기 전에 소유자 등의 변수 값들을 설정하고 컨트랙트를 배포합니다.

   ![erc721-set-owner-and-deploy](/files/OTcHp2SBXuEScyWeT6fp)
7. MetaMask에서 확인 창이 나타나면, 다시 한번 확인한 뒤 컨트랙트 배포를 진행합니다.

   ![erc721-deploy-check](/files/TkxIXhoDI1UuoJMz6CPu)
8. 배포가 완료되면 MetaMask에서 아래와 같은 화면을 확인할 수 있습니다.

   ![erc721-deploy-complete](/files/nn1jBVEpGEwsPP8njYss)

### 배포된 ERC721 토큰 컨트랙트로 NFT 발행하기

위 튜토리얼에서 계속 이어집니다.

1. 아래 이미지 `Deployed Contracts` 영역에, `safeMint` 함수가 있는 것을 확인할 수 있습니다. 이 함수를 이용하여 NFT를 발행할 수 있습니다. 'to', 'tokenId' 영역에 적절한 값을 채워줍니다.

   ![erc721-mint](/files/AimWoRcue83i4YeKXjnl)
2. `transact` 버튼을 누르면, 트랜잭션에 대해 컨펌할 수 있는 창이 나타납니다.

   ![erc721-mint-check](/files/SY8qCQdrJAYUJ1RYfha4)
3. 트랜잭션이 정상적으로 실행되면, NFT가 발행됩니다. MetaMask와 같은 월렛 내 NFT토큰 보기를 통해 확인이 가능합니다.

   ![erc721-metamask-nft-check](/files/QYW4ixZYUMuLmECjLQkp)

### 다음 단계로 넘어가기

* [ERC1155 토큰 컨트랙트 배포하기](/infrablockchain-docs/ko/infrablockchain/tutorials/service-chains/infra-evm-parachain/deploy-erc1155-contract.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.infrablockchain.net/infrablockchain-docs/ko/infrablockchain/tutorials/service-chains/infra-evm-parachain/deploy-erc721-contract.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
