# 7. Chainlink CCIP & Cross-Chain NFT dApps

<mark style="color:blue;">`CrossChainPriceNFT`</mark> is an NFT Smart contract. It uses the [BTC/USD Data Feed ](https://docs.chain.link/data-feeds/price-feeds/addresses?)to get the Bitcoin Price

{% embed url="<https://www.youtube.com/live/IyiiRlz5Y60?si=AnUD1t-1MmkINDVS>" %}
Chainlink CCIP in Cross-Chain dApps
{% endembed %}

## **CrossChainPriceNFT.sol**

CrossChainPriceNFT.sol an NFT Smart contract, it uses the BTC/USD Data Feed to get the Bitcoin Price

* The Images are emojis which depend on the price of Bitcoin when it was minted. If the Price is higher, then the Emoji is happy, if it is lower, the Emoji is sad, or if it didnt change, the Emoji remains neutral.
* The Background Color depends on which blockchain the mint command came from.
* The image is an SVG Generated on Chain, inside the smart contract
* The MetaData is generated on chain, using Base64

{% embed url="<https://github.com/solangegueiros/chainlink-bootcamp-2024/blob/main/CrossChainPriceNFT.sol>" %}
CrossChainPriceNFT.sol source code
{% endembed %}

***

## CrossDestinationMinter.sol&#x20;

* is prepared to receive a CCIP Message and mint an NFT

{% embed url="<https://github.com/solangegueiros/chainlink-bootcamp-2024/blob/main/CrossDestinationMinter.sol>" %}
CrossDestinationMinter.sol Source Code
{% endembed %}

***

## CrossSourceMinter.Sol

This smart contract creates a CCIP Message and sends it to the destination Chain using [Chainlink CCIP](https://docs.chain.link/ccip). This sending-side Smart contract will be deployed on Avalanche Fuji.

{% embed url="<https://github.com/solangegueiros/chainlink-bootcamp-2024/blob/main/CrossSourceMinter.sol>" %}
CrossSourceMinter.sol Source Code
{% endembed %}

***

## CrossSourceMinterMumbai.sol

This smart contract is the same as the CrossSourceMinter, but it is deployed on Polygon Mumbai. \[IMPORTANT NOTE - MUMBAI is currently Deprecated] I will provide a workaround in this workshop but I wanted to include all the source material from the recorded bootcamp content so you, the learner can backtrack and see how it was originally shared.

{% embed url="<https://github.com/solangegueiros/chainlink-bootcamp-2024/blob/main/CrossSourceMinterMumbai.sol>" %}
CrossSourceMinterMumbai.sol Source Code
{% endembed %}


---

# 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://cll-devrel.gitbook.io/bootcamp-2024/7.-chainlink-ccip-and-cross-chain-nft-dapps.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.
